(self, x, register_hook=False)
| 101 | # self.mlp = checkpoint_wrapper(self.mlp) |
| 102 | |
| 103 | def forward(self, x, register_hook=False): |
| 104 | x = x + self.drop_path(self.attn(self.norm1(x), register_hook=register_hook)) |
| 105 | x = x + self.drop_path(self.mlp(self.norm2(x))) |
| 106 | return x |
| 107 | |
| 108 | |
| 109 | class VisionTransformer(nn.Module): |
nothing calls this directly
no outgoing calls
no test coverage detected