pub struct TensorInfo {
pub name: String,
pub shape: Vec<i32>,
pub dtype: DataType,
pub format: DataFormat,
}Expand description
Information about a tensor’s shape and type.
Fields§
§name: StringName of the tensor (may be empty)
shape: Vec<i32>Shape of the tensor (dimensions)
dtype: DataTypeData type of tensor elements
format: DataFormatData format (layout)
Implementations§
Source§impl TensorInfo
impl TensorInfo
Trait Implementations§
Source§impl Clone for TensorInfo
impl Clone for TensorInfo
Source§fn clone(&self) -> TensorInfo
fn clone(&self) -> TensorInfo
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 Debug for TensorInfo
impl Debug for TensorInfo
Source§impl PartialEq for TensorInfo
impl PartialEq for TensorInfo
impl Eq for TensorInfo
impl StructuralPartialEq for TensorInfo
Auto Trait Implementations§
impl Freeze for TensorInfo
impl RefUnwindSafe for TensorInfo
impl Send for TensorInfo
impl Sync for TensorInfo
impl Unpin for TensorInfo
impl UnsafeUnpin for TensorInfo
impl UnwindSafe for TensorInfo
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