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> Clone for ToExtentTensorOperation<'c>
impl<'c> Clone for ToExtentTensorOperation<'c>
Source§fn clone(&self) -> ToExtentTensorOperation<'c>
fn clone(&self) -> ToExtentTensorOperation<'c>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'c> Debug for ToExtentTensorOperation<'c>
impl<'c> Debug for ToExtentTensorOperation<'c>
Source§impl<'b> From<ToExtentTensorOperation<'b>> for ShapeDialectOperation<'b>
impl<'b> From<ToExtentTensorOperation<'b>> for ShapeDialectOperation<'b>
Source§fn from(op: ToExtentTensorOperation<'b>) -> Self
fn from(op: ToExtentTensorOperation<'b>) -> Self
Converts to this type from the input type.
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.
Source§impl<'c> PartialEq for ToExtentTensorOperation<'c>
impl<'c> PartialEq for ToExtentTensorOperation<'c>
Source§impl<'c> TryFrom<Operation<'c>> for ToExtentTensorOperation<'c>
impl<'c> TryFrom<Operation<'c>> for ToExtentTensorOperation<'c>
impl<'c> Eq for ToExtentTensorOperation<'c>
impl<'c> StructuralPartialEq for ToExtentTensorOperation<'c>
Auto Trait Implementations§
impl<'c> Freeze for ToExtentTensorOperation<'c>
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