Realm

oa::ml::OnnxGraph

One imported ONNX inference graph over device-resident F32 tensors.

StRust public API

Declaration

pub struct OnnxGraph { /* private fields */ }
Public Rust declaration.

Public Methods

pub fn input_name(&self) -> &str
pub fn output_name(&self) -> &str
pub fn num_nodes(&self) -> usize
pub fn forward(&self, input: &Matrix) -> Result<Matrix>

Associated Functions

pub fn load(path: impl AsRef<Path>) -> Result<Self>
pub fn load_on(runtime: &Runtime, path: impl AsRef<Path>) -> Result<Self>
pub fn from_bytes_on(runtime: &Runtime, bytes: &[u8]) -> Result<Self>

Public Method Documentation

pub fn input_name( &self ) -> &str
No public source comment is attached to this declaration.
pub fn output_name( &self ) -> &str
No public source comment is attached to this declaration.
pub fn num_nodes( &self ) -> usize
No public source comment is attached to this declaration.
pub fn forward( &self, input: &Matrix ) -> Result<Matrix>
No public source comment is attached to this declaration.
pub fn load( path: impl AsRef<Path> ) -> Result<Self>
No public source comment is attached to this declaration.
pub fn load_on( runtime: &Runtime, path: impl AsRef<Path> ) -> Result<Self>
No public source comment is attached to this declaration.
pub fn from_bytes_on( runtime: &Runtime, bytes: &[u8] ) -> Result<Self>
No public source comment is attached to this declaration.