code: @Override
      public Tensor forward() {
          Tensor x = modInX.getOutput();
          Tensor w = modInW.getOutput();
          y = new Tensor(x); // copy
          y.multiply(weightX);
          Tensor tmp = new Tensor(w); // copy
          tmp.multiply(weightW);
          y.elemAdd(tmp);
          return y;
      }
docs: Foward pass: y_i = \lambda x_i + \gamma w_i