MCPcopy Create free account
hub / github.com/SwinTransformer/Transformer-SSL / flops

Method flops

models/swin_transformer.py:340–344  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

338 return f"input_resolution={self.input_resolution}, dim={self.dim}"
339
340 def flops(self):
341 H, W = self.input_resolution
342 flops = H * W * self.dim
343 flops += (H // 2) * (W // 2) * 4 * self.dim * 2 * self.dim
344 return flops
345
346
347class BasicLayer(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected