operator + method

Value operator +(
  1. dynamic other
)

Implementation

Value operator +(dynamic other) {
  other = other is num ? Value(other) : other;
  final out = Value(data + other.data, children: [other], op: "+");
  _backward = () {
    grad += out.grad;
    other.grad += out.grad;
  };
  out._backward = _backward;
  return out;
}