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

Method build

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

Source from the content-addressed store, hash-verified

3570class BareUpdateLayer(keras.layers.Layer):
3571
3572 def build(self, input_shape):
3573 self.counter = self.add_weight(
3574 'counter',
3575 dtype='int32',
3576 shape=(),
3577 initializer='zeros',
3578 trainable=False)
3579
3580 def call(self, inputs):
3581 state_ops.assign_add(self.counter, 1)

Callers

nothing calls this directly

Calls 1

add_weightMethod · 0.45

Tested by

no test coverage detected