Trait burn_tensor::ElementConversion
source · [−]pub trait ElementConversion {
fn from_elem<E: ToPrimitive>(elem: E) -> Self;
fn to_elem<E: Element>(&self) -> E;
}
pub trait ElementConversion {
fn from_elem<E: ToPrimitive>(elem: E) -> Self;
fn to_elem<E: Element>(&self) -> E;
}