operator * method

Value operator *(
  1. covariant Value other
)

Implementation

Value operator *(covariant Value other) {
  var result = Value(value * other.value, op: mulOp);
  result._prev.addAll([this, other]);
  _backwardFn = () => {
        grad += (other.value * result.grad),
        other.grad += (value * result.grad),
      };
  return result;
}