(self)
| 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 |
nothing calls this directly
no outgoing calls
no test coverage detected