#[repr(C)]pub struct CompiledNN {
pub core: *mut NeuralNetwork_CompiledNN,
}
Fields§
§core: *mut NeuralNetwork_CompiledNN
Implementations§
Source§impl CompiledNN
impl CompiledNN
pub unsafe fn compile(&mut self, filename: *const c_char)
pub unsafe fn apply(&mut self)
pub unsafe fn input(&self, index: c_ulong) -> Tensor
pub unsafe fn output(&self, index: c_ulong) -> Tensor
pub unsafe fn input_mut(&mut self, index: c_ulong) -> TensorMut
pub unsafe fn output_mut(&mut self, index: c_ulong) -> TensorMut
pub unsafe fn new() -> Self
pub unsafe fn destruct(&mut self)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CompiledNN
impl RefUnwindSafe for CompiledNN
impl !Send 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