MCPcopy 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

testCallMethod · 0.70
testDeepCopyMethod · 0.70
_gen_layerMethod · 0.70
testGetUpdateForMethod · 0.70
testGetLossesForMethod · 0.70

Calls

no outgoing calls

Tested by 6

testCallMethod · 0.56
testDeepCopyMethod · 0.56
_gen_layerMethod · 0.56
testGetUpdateForMethod · 0.56
testGetLossesForMethod · 0.56