Skip to main content

linear_from_qtensor

Function linear_from_qtensor 

Source
pub fn linear_from_qtensor<B: Backend>(
    qt: &QTensor,
) -> Result<Box<dyn Linear<B>>>
Expand description

Convenience: build a boxed Linear<B> from a QTensor. Useful for WeightLoader impls that want a uniform Box<dyn Linear<B>> output.