pub struct Model { /* fields omitted */ }
Model, which executes computation.
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")?;
Executes the destructor for this type. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)