Sha256: 98f386ba132682d0e058dc088483e25f9dec5a6ff418d861b1ec4b94e8a14380
Contents?: true
Size: 304 Bytes
Versions: 9
Compression:
Stored size: 304 Bytes
Contents
TensorStream::OpMaker.define_operation :sin do |op| op.what_it_does "Computes sin 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 * ts.cos(params[0]) end end
Version data entries
9 entries across 9 versions & 1 rubygems