Sha256: 59f0e0de89fc17b7caae349a1fe68afac4fec6d324cd5277adc03128c818468e
Contents?: true
Size: 423 Bytes
Versions: 5
Compression:
Stored size: 423 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 end
Version data entries
5 entries across 5 versions & 1 rubygems