Module convert

Module convert 

Source
Expand description

Conversion utilities between Burn tensor primitives and tenferro tensors.

§Current Limitations

These conversion functions currently only support f64 element type. Support for f32 and other numeric types will be added in future versions.

Functions§

burn_to_tenferro
Convert a Burn backend tensor primitive into a tenferro Tensor<f64>, panicking if conversion fails.
tenferro_to_burn
Convert a tenferro Tensor<f64> into a Burn backend tensor primitive, panicking if conversion fails.
try_burn_to_tenferro
Fallibly convert a Burn backend tensor primitive into a tenferro Tensor<f64>.
try_tenferro_to_burn
Convert a tenferro Tensor<f64> into a Burn backend tensor primitive.