pub struct DequantizeCastOperation<'c> { /* private fields */ }
Expand description
A dcast
operation. Convert back from a quantized to quantizable (expressed) type operation.
A DequantizeCast op dcast
represents the inverse of a qcast
,
converting back from a quantized to quantizable (expressed) type.
Like qcast
s, a dcast
is allowed to have both its operand and result
as non quantized types. This facilitates transformations and marks edges
where the computation must be carried out in the expressed type.
Especially early in transformation, it is common to have dcast
s on
all operands to ops that must operate with the expressed type (typically
math ops prior to lowering to target-specific, quantized kernels).
Implementations§
source§impl<'c> DequantizeCastOperation<'c>
impl<'c> DequantizeCastOperation<'c>
sourcepub fn as_operation(&self) -> &Operation<'c>
pub fn as_operation(&self) -> &Operation<'c>
Returns a generic operation.
sourcepub fn builder(
context: &'c Context,
location: Location<'c>
) -> DequantizeCastOperationBuilder<'c, Unset, Unset>
pub fn builder( context: &'c Context, location: Location<'c> ) -> DequantizeCastOperationBuilder<'c, Unset, Unset>
Creates a builder.
pub fn res(&self) -> Result<OperationResult<'c, '_>, Error>
pub fn arg(&self) -> Result<Value<'c, '_>, Error>
Trait Implementations§
source§impl<'c> From<DequantizeCastOperation<'c>> for Operation<'c>
impl<'c> From<DequantizeCastOperation<'c>> for Operation<'c>
source§fn from(operation: DequantizeCastOperation<'c>) -> Self
fn from(operation: DequantizeCastOperation<'c>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'c> RefUnwindSafe for DequantizeCastOperation<'c>
impl<'c> !Send for DequantizeCastOperation<'c>
impl<'c> !Sync for DequantizeCastOperation<'c>
impl<'c> Unpin for DequantizeCastOperation<'c>
impl<'c> UnwindSafe for DequantizeCastOperation<'c>
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