MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / argmax

Method argmax

tensorflow/python/eager/backprop_test.py:576–578  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

574 @test_util.assert_no_new_tensors
575 def testArgmax(self):
576 def argmax(x):
577 i = math_ops.argmax(x)
578 return array_ops.stop_gradient(i)
579
580 grad = backprop.gradients_function(argmax)
581 self.assertAllEqual(grad([0.0])[0], None)

Callers 15

testArgMaxMinMethod · 0.80
testArgMinMaxMethod · 0.80
_get_tensor_reprFunction · 0.80
callMethod · 0.80
callMethod · 0.80
_metric_fnFunction · 0.80
model_fnFunction · 0.80
model_fnFunction · 0.80
evaluateFunction · 0.80
compute_essFunction · 0.80
_np_sparsemaxMethod · 0.80
_np_sparsemaxMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected