pub trait Affine<X, Y = X> {
type Output;
// Required method
fn affine(&self, mul: X, add: Y) -> Self::Output;
}
Expand description
apply an affine transformation to a tensor;
affine transformation is defined as mul * self + add
pub trait Affine<X, Y = X> {
type Output;
// Required method
fn affine(&self, mul: X, add: Y) -> Self::Output;
}
apply an affine transformation to a tensor;
affine transformation is defined as mul * self + add