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

Method _check_input_shape

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

Source from the content-addressed store, hash-verified

327 """
328
329 def _check_input_shape(self, inputs):
330 inputs_shape = _compute_shape(inputs)
331 if len(inputs_shape) != 2 and len(inputs_shape) != 3:
332 raise ValueError('expected input to be 2D or 3D, but got {}D input'.format(inputs.ndim))
333
334
335class BatchNorm2d(BatchNorm):

Callers

nothing calls this directly

Calls 1

_compute_shapeFunction · 0.85

Tested by

no test coverage detected