Struct menoh::Model[][src]

pub struct Model { /* fields omitted */ }

Model, which executes computation.

Methods

impl Model
[src]

Fetch the shape of a variable.

let dims = model.get_variable_dims("fc2")?;

Fetch the shape and read-only view of a variable.

let (dims, buf) = model.get_variable::<f32>("fc2")?;

Fetch the shape and read/write view of a variable.

let (dims, buf) = model.get_variable_mut::<f32>("fc2")?;

Trait Implementations

impl Drop for Model
[src]

Executes the destructor for this type. Read more

Auto Trait Implementations

impl !Send for Model

impl !Sync for Model