Add the affine transformation.

This commit is contained in:
laurent
2023-06-20 21:51:35 +01:00
parent e04d0ac1ac
commit f1f372b13e
3 changed files with 71 additions and 7 deletions

View File

@ -2,6 +2,12 @@ use crate::Tensor;
pub(crate) enum Op {
Add(Tensor, Tensor),
#[allow(dead_code)] // add is currently unused.
Affine {
arg: Tensor,
mul: f64,
add: f64,
},
Mul(Tensor, Tensor),
Sqr(Tensor),
Sqrt(Tensor),