MCPcopy Index your code
hub / github.com/tensorlayer/TensorLayer / _check_input_shape

Method _check_input_shape

tensorlayer/layers/normalization.py:265–268  ·  view source on GitHub ↗
(self, inputs)

Source from the content-addressed store, hash-verified

263 return params_shape
264
265 def _check_input_shape(self, inputs):
266 inputs_shape = _compute_shape(inputs)
267 if len(inputs_shape) <= 1:
268 raise ValueError('expected input at least 2D, but got {}D input'.format(inputs.ndim))
269
270 def build(self, inputs_shape):
271 params_shape = [self.num_features] if self.num_features is not None else self._get_param_shape(inputs_shape)

Callers 1

forwardMethod · 0.95

Calls 1

_compute_shapeFunction · 0.85

Tested by

no test coverage detected