pub struct FftLearnRunner { /* private fields */ }Implementations§
Source§impl FftLearnRunner
impl FftLearnRunner
pub fn new(cfg: FftLearnConfig) -> Result<Self>
pub fn new_ifft(cfg: FftLearnConfig) -> Result<Self>
pub fn new_dir(cfg: FftLearnConfig, direction: TransformDir) -> Result<Self>
pub fn with_weights(cfg: FftLearnConfig, weights: &WeightStore) -> Result<Self>
pub fn with_weights_ifft( cfg: FftLearnConfig, weights: &WeightStore, ) -> Result<Self>
pub fn with_weights_dir( cfg: FftLearnConfig, weights: &WeightStore, direction: TransformDir, ) -> Result<Self>
pub fn load_compiled(&mut self, device: Device) -> Result<()>
pub fn forward_eager(&self, input: &[f32]) -> Result<Vec<f32>>
pub fn forward(&mut self, input: &[f32]) -> Result<Vec<f32>>
pub fn compare_reference(&self, input: &[f32]) -> Result<(f32, f32)>
pub fn config(&self) -> &FftLearnConfig
pub fn direction(&self) -> TransformDir
Auto Trait Implementations§
impl !RefUnwindSafe for FftLearnRunner
impl !Sync for FftLearnRunner
impl !UnwindSafe for FftLearnRunner
impl Freeze for FftLearnRunner
impl Send for FftLearnRunner
impl Unpin for FftLearnRunner
impl UnsafeUnpin for FftLearnRunner
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> 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