pub struct ToExtentTensorOperation<'c> { /* private fields */ }
Expand description
A to_extent_tensor
operation. Creates a dimension tensor from a shape.
Converts a shape to a 1D integral tensor of extents. The number of elements in the tensor equals the rank of the shape, and the elements equal the extents of the shape.
If the shape represents an error, this op’s behavior is undefined.
Implementations§
source§impl<'c> ToExtentTensorOperation<'c>
impl<'c> ToExtentTensorOperation<'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>
) -> ToExtentTensorOperationBuilder<'c, Unset, Unset>
pub fn builder( context: &'c Context, location: Location<'c> ) -> ToExtentTensorOperationBuilder<'c, Unset, Unset>
Creates a builder.
pub fn result(&self) -> Result<OperationResult<'c, '_>, Error>
pub fn input(&self) -> Result<Value<'c, '_>, Error>
Trait Implementations§
source§impl<'c> From<ToExtentTensorOperation<'c>> for Operation<'c>
impl<'c> From<ToExtentTensorOperation<'c>> for Operation<'c>
source§fn from(operation: ToExtentTensorOperation<'c>) -> Self
fn from(operation: ToExtentTensorOperation<'c>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'c> RefUnwindSafe for ToExtentTensorOperation<'c>
impl<'c> !Send for ToExtentTensorOperation<'c>
impl<'c> !Sync for ToExtentTensorOperation<'c>
impl<'c> Unpin for ToExtentTensorOperation<'c>
impl<'c> UnwindSafe for ToExtentTensorOperation<'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