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> 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