MCPcopy Create free account
hub / github.com/Robbyant/lingbot-map / flops

Method flops

lingbot_map/layers/patch_embed.py:80–85  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

78 return x
79
80 def flops(self) -> float:
81 Ho, Wo = self.patches_resolution
82 flops = Ho * Wo * self.embed_dim * self.in_chans * (self.patch_size[0] * self.patch_size[1])
83 if self.norm is not None:
84 flops += Ho * Wo * self.embed_dim
85 return flops

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected