MCPcopy Create free account
hub / github.com/OpenGVLab/UniFormerV2 / __init__

Method __init__

slowfast/models/common.py:38–40  ·  view source on GitHub ↗
(self, dims)

Source from the content-addressed store, hash-verified

36
37class Permute(nn.Module):
38 def __init__(self, dims):
39 super().__init__()
40 self.dims = dims
41
42 def forward(self, x):
43 return x.permute(*self.dims)

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected