pub struct Tensor(/* private fields */);Trait Implementations§
impl Send for Tensor
impl Sync for Tensor
Source§impl TensorInterface for Tensor
impl TensorInterface for Tensor
fn from_bytes(dt: DatumType, shape: &[usize], data: &[u8]) -> Result<Self>
fn as_bytes(&self) -> Result<(DatumType, &[usize], &[u8])>
fn datum_type(&self) -> Result<DatumType>
fn convert_to(&self, to: DatumType) -> Result<Self>
fn from_slice<T>(shape: &[usize], data: &[T]) -> Result<Self, Error>where
T: Datum,
fn as_slice<T>(&self) -> Result<&[T], Error>where
T: Datum,
fn as_shape_and_slice<T>(&self) -> Result<(&[usize], &[T]), Error>where
T: Datum,
fn shape(&self) -> Result<&[usize], Error>
Auto Trait Implementations§
impl Freeze for Tensor
impl RefUnwindSafe 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