exp method
Implementation
Value exp() {
final expVal = math.exp(data);
final out = Value(expVal, {this}, 'exp');
out._backward = () {
grad += expVal * out.grad;
};
return out;
}
Value exp() {
final expVal = math.exp(data);
final out = Value(expVal, {this}, 'exp');
out._backward = () {
grad += expVal * out.grad;
};
return out;
}