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

Method build

tensorflow/python/keras/engine/training_test.py:3587–3593  ·  view source on GitHub ↗
(self, input_shape)

Source from the content-addressed store, hash-verified

3585class LambdaUpdateLayer(keras.layers.Layer):
3586
3587 def build(self, input_shape):
3588 self.counter = self.add_weight(
3589 'counter',
3590 dtype='int32',
3591 shape=(),
3592 initializer='zeros',
3593 trainable=False)
3594
3595 def call(self, inputs):
3596 # Make sure update isn't run twice.

Callers

nothing calls this directly

Calls 1

add_weightMethod · 0.45

Tested by

no test coverage detected