Struct burn_ndarray::NdArrayTensor
source · pub struct NdArrayTensor<E, const D: usize> {
pub array: ArcArray<E, IxDyn>,
}Expand description
Tensor primitive used by the ndarray backend.
Fields§
§array: ArcArray<E, IxDyn>Dynamic array that contains the data of type E.
Implementations§
source§impl<E, const D: usize> NdArrayTensor<E, D>
impl<E, const D: usize> NdArrayTensor<E, D>
source§impl<E, const D: usize> NdArrayTensor<E, D>
impl<E, const D: usize> NdArrayTensor<E, D>
sourcepub fn from_data(data: Data<E, D>) -> NdArrayTensor<E, D>
pub fn from_data(data: Data<E, D>) -> NdArrayTensor<E, D>
Create a new ndarray tensor from data.
Trait Implementations§
Auto Trait Implementations§
impl<E, const D: usize> Freeze for NdArrayTensor<E, D>
impl<E, const D: usize> RefUnwindSafe for NdArrayTensor<E, D>where
E: RefUnwindSafe,
impl<E, const D: usize> Send for NdArrayTensor<E, D>
impl<E, const D: usize> Sync for NdArrayTensor<E, D>
impl<E, const D: usize> Unpin for NdArrayTensor<E, D>
impl<E, const D: usize> UnwindSafe for NdArrayTensor<E, D>where
E: RefUnwindSafe,
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more