#[non_exhaustive]pub enum BurnBackend {
Wgpu32,
Wgpu64,
NdArray32,
NdArray64,
}Expand description
Backend type for burn
Number after enum name denotes floating point width.
64-bit floats may require extra compilation flags for some devices. The optimizer code is designed to work with 32-bit floats, these should be preferred.
This struct is non_exhaustive. This is unlikely to change.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Wgpu32
WebGPU, best cross-platform GPU support, 32 bit precision.
Wgpu64
WebGPU, best cross-platform GPU support, 64 bit precision.
NdArray32
NdArray, runs on most CPU architectures, 32 bit precision.
NdArray64
NdArray, runs on most CPU architectures, 64 bit precision.
Trait Implementations§
Source§impl Clone for BurnBackend
impl Clone for BurnBackend
Source§fn clone(&self) -> BurnBackend
fn clone(&self) -> BurnBackend
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BurnBackend
impl Debug for BurnBackend
Source§impl Default for BurnBackend
impl Default for BurnBackend
Source§fn default() -> BurnBackend
fn default() -> BurnBackend
Returns the “default value” for a type. Read more
Source§impl FromStr for BurnBackend
impl FromStr for BurnBackend
Source§impl PartialEq for BurnBackend
impl PartialEq for BurnBackend
impl Eq for BurnBackend
impl StructuralPartialEq for BurnBackend
Auto Trait Implementations§
impl Freeze for BurnBackend
impl RefUnwindSafe for BurnBackend
impl Send for BurnBackend
impl Sync for BurnBackend
impl Unpin for BurnBackend
impl UnwindSafe for BurnBackend
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> 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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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