Sha256: 1e5d35e52d4b889d12e9a9d0ae9c0e35cf828c95eb82374848959280ba4ff59c
Contents?: true
Size: 316 Bytes
Versions: 9
Compression:
Stored size: 316 Bytes
Contents
TensorStream::OpMaker.define_operation :tanh do |op| op.what_it_does "Computes tanh of input element-wise." op.parameter :input_a, "tensor X", validate: 'FLOATING_POINT_TYPES' op.option :name, "Optional name", :nil op.define_gradient do |grad, node, params| grad * i_op(:tanh_grad, params[0]) end end
Version data entries
9 entries across 9 versions & 1 rubygems