pub struct TensorView<'a> {
pub name: &'a str,
pub shape: &'a [usize],
pub data: TensorData<'a>,
}Expand description
Named tensor borrowing contiguous, row-major CPU storage. Creating a view does not validate it; inference validates it against the model.
Fields§
§name: &'a strInput or output name from the ONNX graph.
shape: &'a [usize]Concrete dimensions; use [] for a scalar.
data: TensorData<'a>Borrowed elements in row-major order.
Implementations§
Trait Implementations§
Source§impl<'a> Clone for TensorView<'a>
impl<'a> Clone for TensorView<'a>
impl<'a> Copy for TensorView<'a>
Auto Trait Implementations§
impl<'a> Freeze for TensorView<'a>
impl<'a> RefUnwindSafe for TensorView<'a>
impl<'a> Send for TensorView<'a>
impl<'a> Sync for TensorView<'a>
impl<'a> Unpin for TensorView<'a>
impl<'a> UnsafeUnpin for TensorView<'a>
impl<'a> UnwindSafe for TensorView<'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