burn_to_tenferro

Function burn_to_tenferro 

Source
pub fn burn_to_tenferro<B: Backend>(_tensor: FloatTensor<B>) -> Tensor<f64>
Expand description

Convert a Burn backend tensor primitive into a tenferro Tensor<f64>.

§Examples

use burn::backend::NdArray;
use tenferro_burn::convert::burn_to_tenferro;

let burn_prim: <NdArray<f64> as burn::tensor::backend::Backend>::FloatTensorPrimitive =
    todo!();
let tenferro_t: tenferro_tensor::Tensor<f64> = burn_to_tenferro::<NdArray<f64>>(burn_prim);