pub struct Shape<'a> {
pub name: &'a str,
pub values: &'a [i64],
}Expand description
A serialized compile-time shape value.
Shape values occupy the TOSA shape namespace rather than the tensor namespace. They must be
produced by OperatorKind::ConstShape before an operator such as RESHAPE consumes them.
Fields§
§name: &'a strUnique block-local shape name.
values: &'a [i64]Signed 64-bit TOSA shape components. A scalar target shape uses an empty slice.
Implementations§
Trait Implementations§
impl<'a> Copy for Shape<'a>
impl<'a> Eq for Shape<'a>
Source§impl From<Shape<'_>> for OwnedShape
impl From<Shape<'_>> for OwnedShape
impl<'a> StructuralPartialEq for Shape<'a>
Auto Trait Implementations§
impl<'a> Freeze for Shape<'a>
impl<'a> RefUnwindSafe for Shape<'a>
impl<'a> Send for Shape<'a>
impl<'a> Sync for Shape<'a>
impl<'a> Unpin for Shape<'a>
impl<'a> UnsafeUnpin for Shape<'a>
impl<'a> UnwindSafe for Shape<'a>
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