operator + method
Implementation
Value operator +(dynamic other) {
final o = Value.toValue(other);
final out = Value(data + o.data, {this, o}, '+');
out._backward = () {
this.grad += out.grad;
o.grad += out.grad;
};
return out;
}
Value operator +(dynamic other) {
final o = Value.toValue(other);
final out = Value(data + o.data, {this, o}, '+');
out._backward = () {
this.grad += out.grad;
o.grad += out.grad;
};
return out;
}