pub struct CompiledNN { /* private fields */ }
Implementations§
Source§impl CompiledNN
impl CompiledNN
pub fn compile(&mut self, filename: impl AsRef<Path>)
pub fn input(&self, index: usize) -> Tensor<'_>
pub fn input_mut(&mut self, index: usize) -> TensorMut<'_>
pub fn output(&self, index: usize) -> Tensor<'_>
pub fn output_mut(&mut self, index: usize) -> TensorMut<'_>
pub fn apply(&mut self)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CompiledNN
impl RefUnwindSafe for CompiledNN
impl !Sync for CompiledNN
impl Unpin for CompiledNN
impl UnwindSafe for CompiledNN
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