MCPcopy Create free account
hub / github.com/hankcs/HanLP / compute_output_shape

Method compute_output_shape

hanlp/layers/weight_normalization.py:160–162  ·  view source on GitHub ↗
(self, input_shape)

Source from the content-addressed store, hash-verified

158 return outputs
159
160 def compute_output_shape(self, input_shape):
161 return tf.TensorShape(
162 self.layer.compute_output_shape(input_shape).as_list())
163
164 def _initialize_weights(self, inputs):
165 """Initialize weight g.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected