pub struct Tensor(/* private fields */);Trait Implementations§
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>
fn view<T>(&self) -> Result<ArrayBase<ViewRepr<&T>, Dim<IxDynImpl>>, Error>where
T: Datum,
fn view1<T>(&self) -> Result<ArrayBase<ViewRepr<&T>, Dim<[usize; 1]>>, Error>where
T: Datum,
fn view2<T>(&self) -> Result<ArrayBase<ViewRepr<&T>, Dim<[usize; 2]>>, Error>where
T: Datum,
fn view3<T>(&self) -> Result<ArrayBase<ViewRepr<&T>, Dim<[usize; 3]>>, Error>where
T: Datum,
fn view4<T>(&self) -> Result<ArrayBase<ViewRepr<&T>, Dim<[usize; 4]>>, Error>where
T: Datum,
fn view5<T>(&self) -> Result<ArrayBase<ViewRepr<&T>, Dim<[usize; 5]>>, Error>where
T: Datum,
fn view6<T>(&self) -> Result<ArrayBase<ViewRepr<&T>, Dim<[usize; 6]>>, Error>where
T: Datum,
impl Send for Tensor
impl Sync for Tensor
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