MCPcopy Create free account
hub / github.com/ChunmingHe/WS-SAM / forward

Method forward

lib/VIT/decoder/decoder_p.py:89–91  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

87 self.body = WithBias_LayerNorm(dim)
88
89 def forward(self, x):
90 h, w = x.shape[-2:]
91 return to_4d(self.body(to_3d(x)), h, w)
92
93 def initialize(self):
94 weight_init(self)

Callers

nothing calls this directly

Calls 2

to_4dFunction · 0.85
to_3dFunction · 0.85

Tested by

no test coverage detected