MCPcopy Create free account
hub / github.com/FreeformRobotics/OTS / _check_input_dim

Method _check_input_dim

lib/nn/modules/batchnorm.py:198–202  ·  view source on GitHub ↗
(self, input)

Source from the content-addressed store, hash-verified

196 """
197
198 def _check_input_dim(self, input):
199 if input.dim() != 2 and input.dim() != 3:
200 raise ValueError('expected 2D or 3D input (got {}D input)'
201 .format(input.dim()))
202 super(SynchronizedBatchNorm1d, self)._check_input_dim(input)
203
204
205class SynchronizedBatchNorm2d(_SynchronizedBatchNorm):

Callers 2

_check_input_dimMethod · 0.45
_check_input_dimMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected