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

Method _check_input_dim

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

Source from the content-addressed store, hash-verified

259 """
260
261 def _check_input_dim(self, input):
262 if input.dim() != 4:
263 raise ValueError('expected 4D input (got {}D input)'
264 .format(input.dim()))
265 super(SynchronizedBatchNorm2d, self)._check_input_dim(input)
266
267
268class SynchronizedBatchNorm3d(_SynchronizedBatchNorm):

Callers

nothing calls this directly

Calls 1

_check_input_dimMethod · 0.45

Tested by

no test coverage detected