export_tensors

Function export_tensors 

Source
pub fn export_tensors<P, B>(
    path: P,
    tensors: &[(String, Tensor<B>)],
    model_name: &str,
) -> Result<()>
where P: AsRef<Path>, B: Backend,
Expand description

Export named tensors directly to ONNX format.

Lower-level API: saves a set of named tensors as ONNX initializers.