pub struct TensorSpec {
pub name: String,
pub dtype: TensorDtype,
pub shape: Vec<usize>,
pub data: Vec<u8>,
}Expand description
Input for the Rust writer: one tensor with its encoded bytes.
Fields§
§name: String§dtype: TensorDtype§shape: Vec<usize>§data: Vec<u8>Trait Implementations§
Source§impl Clone for TensorSpec
impl Clone for TensorSpec
Auto Trait Implementations§
impl Freeze for TensorSpec
impl RefUnwindSafe for TensorSpec
impl Send for TensorSpec
impl Sync for TensorSpec
impl Unpin for TensorSpec
impl UnsafeUnpin for TensorSpec
impl UnwindSafe for TensorSpec
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