Sha256: 6df227a3e565634d73916d0c98208bc1ea0415da556e0790cc792a427f0ed877
Contents?: true
Size: 468 Bytes
Versions: 4
Compression:
Stored size: 468 Bytes
Contents
TensorStream::OpMaker.define_operation :equal do |op| op.what_it_does "Returns the truth value of (x == y) element-wise." op.parameter :input_a, "tensor X" op.parameter :input_b, "tensor Y" op.apply_data_type_coercion! op.supports_broadcasting! op.option :name, "Optional name", :nil op.define_gradient do |grad, node, params| _min_or_max_grad(node.inputs, grad, ->(a, b) { ts.equal(a, b) }) end op.define_data_type do :boolean end end
Version data entries
4 entries across 4 versions & 1 rubygems