Realm

oa::ml::precision::PrecisionPolicy

A typed precision request for one training run.

StRust public API

Declaration

pub struct PrecisionPolicy { pub storage: StoragePrecision, }
Public Rust declaration.

Public Methods

pub fn resolve(&self, runtime: &Runtime) -> Result<EffectivePrecision>
fn clone(&self) -> PrecisionPolicy
fn fmt(&self, f: &mut Formatter<'_>) -> Result
fn eq(&self, other: &PrecisionPolicy) -> bool

Associated Functions

pub const fn f32() -> Self
pub const fn f16_storage() -> Self
pub fn current(runtime: &Runtime) -> EffectivePrecision

Public Data Members

storageStoragePrecisionfield

Public Method Documentation

pub fn resolve( &self, runtime: &Runtime ) -> Result<EffectivePrecision>
No public source comment is attached to this declaration.
fn clone( &self ) -> PrecisionPolicy
No public source comment is attached to this declaration.
fn fmt( &self, f: &mut Formatter<'_> ) -> Result
No public source comment is attached to this declaration.
fn eq( &self, other: &PrecisionPolicy ) -> bool
No public source comment is attached to this declaration.
pub const fn f32() -> Self
No public source comment is attached to this declaration.
pub const fn f16_storage() -> Self
No public source comment is attached to this declaration.
pub fn current( runtime: &Runtime ) -> EffectivePrecision
No public source comment is attached to this declaration.