Sha256: 68c41ddad271b403c70bef1afaca79ff73dc4c0ffb55cda4d23f98af79d07989
Contents?: true
Size: 476 Bytes
Versions: 4
Compression:
Stored size: 476 Bytes
Contents
TensorStream::OpMaker.define_operation :not_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.not_equal(a, b) }) end op.define_data_type do :boolean end end
Version data entries
4 entries across 4 versions & 1 rubygems