Sha256: 5cd14f5466c7d5c840db7c19bbc7c0d41f6868f0d004821340b1a58062f83224
Contents?: true
Size: 334 Bytes
Versions: 9
Compression:
Stored size: 334 Bytes
Contents
TensorStream::OpMaker.define_operation :negate do |op| op.what_it_does "Computes numerical negative value element-wise." op.parameter :input, "tensor X" op.option :name, "Optional name", :nil op.define_gradient do |grad, node, params| -grad end op.define_shape do |tensor| tensor.inputs[0].shape.shape end end
Version data entries
9 entries across 9 versions & 1 rubygems