pub struct Tensor {
pub dtype: String,
pub shape: Vec<i64>,
pub data: Bytes,
}Expand description
A CPU tensor’s metadata and bytes.
Fields§
§dtype: Stringtorch dtype name or numpy type string.
shape: Vec<i64>Dimensions, outermost first.
data: BytesContiguous element bytes. Shares the received frame; no copy.
Trait Implementations§
impl Eq for Tensor
impl StructuralPartialEq for Tensor
Auto Trait Implementations§
impl !Freeze for Tensor
impl RefUnwindSafe for Tensor
impl Send for Tensor
impl Sync for Tensor
impl Unpin for Tensor
impl UnsafeUnpin for Tensor
impl UnwindSafe for Tensor
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