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

Method square

tensorflow/contrib/eager/python/tfe_test.py:53–54  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

51 def testGradients(self):
52
53 def square(x):
54 return math_ops.multiply(x, x)
55
56 grad = tfe.gradients_function(square)
57 self.assertEquals([6], [x.numpy() for x in grad(3.)])

Callers 15

_create_modelMethod · 0.45
diceFunction · 0.45
predictionMethod · 0.45
diceFunction · 0.45
diceFunction · 0.45
diceFunction · 0.45
predictionMethod · 0.45
predictionMethod · 0.45
_create_modelMethod · 0.45
_create_modelMethod · 0.45
compute_true_l2Method · 0.45
np_functionMethod · 0.45

Calls 1

multiplyMethod · 0.80

Tested by

no test coverage detected