MCPcopy
hub / github.com/tensorlayer/TensorLayer / build

Method build

tensorlayer/layers/scale.py:55–56  ·  view source on GitHub ↗
(self, inputs_shape)

Source from the content-addressed store, hash-verified

53 return s.format(classname=self.__class__.__name__, **self.__dict__)
54
55 def build(self, inputs_shape):
56 self.scale = self._get_weights("scale", shape=[1], init=constant(value=self.init_scale))
57
58 # @tf.function
59 def forward(self, inputs):

Callers 1

__init__Method · 0.95

Calls 1

_get_weightsMethod · 0.80

Tested by

no test coverage detected