MCPcopy Create free account
hub / github.com/thygate/stable-diffusion-webui-depthmap-script / Transpose

Class Transpose

dmidas/backbones/utils.py:42–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40
41
42class Transpose(nn.Module):
43 def __init__(self, dim0, dim1):
44 super(Transpose, self).__init__()
45 self.dim0 = dim0
46 self.dim1 = dim1
47
48 def forward(self, x):
49 x = x.transpose(self.dim0, self.dim1)
50 return x
51
52
53activations = {}

Callers 4

_make_levit_backboneFunction · 0.85
_make_swin_backboneFunction · 0.85
make_backbone_defaultFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected