Skip to main content

convert

Function convert 

Source
pub fn convert(input: &TracedTensor, to: DType) -> TracedTensor
Expand description

Convert a traced tensor to a different dtype.

§Examples

use tenferro::DType;

let y = tenferro::convert(&x, DType::C64);