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

Method build

tensorflow/python/layers/base_test.py:478–480  ·  view source on GitHub ↗
(self, input_shape)

Source from the content-addressed store, hash-verified

476 class MyLayer(base_layers.Layer):
477
478 def build(self, input_shape):
479 self.my_var = self.add_variable('my_var', (), dtypes.float32)
480 self.built = True
481
482 def call(self, inputs):
483 return math_ops.multiply(inputs, self.my_var, name='my_op')

Callers

nothing calls this directly

Calls 4

add_updateMethod · 0.80
add_variableMethod · 0.45
assign_addMethod · 0.45
add_lossMethod · 0.45

Tested by

no test coverage detected