pub enum NdArrayDevice {
Cpu,
}๐Deprecated since 0.22.0:
burn-ndarray is deprecated and will be removed in a future release. Use burn-flex for pure-Rust CPU execution (std, no_std, WebAssembly), or one of the CubeCL backends (burn-cuda, burn-rocm, burn-wgpu, burn-cpu) for GPU acceleration.
Expand description
The device type for the ndarray backend.
Variantsยง
Cpu
๐Deprecated since 0.22.0:
burn-ndarray is deprecated and will be removed in a future release. Use burn-flex for pure-Rust CPU execution (std, no_std, WebAssembly), or one of the CubeCL backends (burn-cuda, burn-rocm, burn-wgpu, burn-cpu) for GPU acceleration.
The CPU device.
Trait Implementationsยง
Sourceยงimpl Clone for NdArrayDevice
impl Clone for NdArrayDevice
Sourceยงfn clone(&self) -> NdArrayDevice
fn clone(&self) -> NdArrayDevice
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) ยท Sourceยงfn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for NdArrayDevice
Sourceยงimpl Debug for NdArrayDevice
impl Debug for NdArrayDevice
Sourceยงimpl Default for NdArrayDevice
impl Default for NdArrayDevice
Sourceยงfn default() -> NdArrayDevice
fn default() -> NdArrayDevice
Returns the โdefault valueโ for a type. Read more
Sourceยงimpl Device for NdArrayDevice
impl Device for NdArrayDevice
Sourceยงimpl DeviceOps for NdArrayDevice
impl DeviceOps for NdArrayDevice
impl Eq for NdArrayDevice
Sourceยงimpl PartialEq for NdArrayDevice
impl PartialEq for NdArrayDevice
impl StructuralPartialEq for NdArrayDevice
Auto Trait Implementationsยง
impl Freeze for NdArrayDevice
impl RefUnwindSafe for NdArrayDevice
impl Send for NdArrayDevice
impl Sync for NdArrayDevice
impl Unpin for NdArrayDevice
impl UnsafeUnpin for NdArrayDevice
impl UnwindSafe for NdArrayDevice
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Sourceยงimpl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Sourceยงimpl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Sourceยงfn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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