pub enum DtypeRule {
Preserve,
SameAsInputs,
Explicit,
Fixed(AbstractDtype),
Unknown,
}Expand description
How the result dtype relates to operand dtypes.
Variants§
Preserve
Result dtype equals the (sole / first) tensor operand.
SameAsInputs
All tensor operands must share a dtype; result is that dtype. Mismatch is a conflict.
Explicit
Result dtype is taken from an explicit argument (e.g. to_dtype(DType::F32)).
Fixed(AbstractDtype)
Result has a fixed Candle dtype independent of its operands.
Unknown
Result dtype cannot be stated.
Trait Implementations§
impl Eq for DtypeRule
impl StructuralPartialEq for DtypeRule
Auto Trait Implementations§
impl Freeze for DtypeRule
impl RefUnwindSafe for DtypeRule
impl Send for DtypeRule
impl Sync for DtypeRule
impl Unpin for DtypeRule
impl UnsafeUnpin for DtypeRule
impl UnwindSafe for DtypeRule
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more