(self)
| 81 | return x |
| 82 | |
| 83 | def flops(self) -> float: |
| 84 | Ho, Wo = self.patches_resolution |
| 85 | flops = Ho * Wo * self.embed_dim * self.in_chans * (self.patch_size[0] * self.patch_size[1]) |
| 86 | if self.norm is not None: |
| 87 | flops += Ho * Wo * self.embed_dim |
| 88 | return flops |
nothing calls this directly
no outgoing calls
no test coverage detected