Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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_model
Method · 0.45
dice
Function · 0.45
prediction
Method · 0.45
dice
Function · 0.45
dice
Function · 0.45
dice
Function · 0.45
prediction
Method · 0.45
prediction
Method · 0.45
_create_model
Method · 0.45
_create_model
Method · 0.45
compute_true_l2
Method · 0.45
np_function
Method · 0.45
Calls
1
multiply
Method · 0.80
Tested by
no test coverage detected