Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DeepRec-AI/DeepRec
/ MyLayer
Class
MyLayer
tensorflow/python/layers/base_test.py:182–185 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
180
def
testCall(self):
181
182
class
MyLayer(base_layers.Layer):
183
184
def
call(self, inputs):
185
return
math_ops.square(inputs)
186
187
layer = MyLayer(name=
'my_layer'
)
188
inputs = random_ops.random_uniform((5,), seed=1)
Callers
6
testCall
Method · 0.70
testDeepCopy
Method · 0.70
_gen_layer
Method · 0.70
testVariablesAreLiftedFromFunctionBuildingGraphs
Method · 0.70
testGetUpdateFor
Method · 0.70
testGetLossesFor
Method · 0.70
Calls
no outgoing calls
Tested by
6
testCall
Method · 0.56
testDeepCopy
Method · 0.56
_gen_layer
Method · 0.56
testVariablesAreLiftedFromFunctionBuildingGraphs
Method · 0.56
testGetUpdateFor
Method · 0.56
testGetLossesFor
Method · 0.56