exp method

Value exp()

Implementation

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