MCPcopy Index your code
hub / github.com/OpenMotionLab/MotionGPT / preprocess

Method preprocess

mGPT/archs/tools/quantize_cnn.py:186–190  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

184 return z_q
185
186 def preprocess(self, x):
187 # NCT -> NTC -> [NT, C]
188 x = x.permute(0, 2, 1).contiguous()
189 x = x.view(-1, x.shape[-1])
190 return x
191
192
193

Callers 1

forwardMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected