We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 95ec255 commit 72fba66Copy full SHA for 72fba66
timm/models/efficientformer.py
@@ -336,7 +336,7 @@ def __init__(
336
337
def forward(self, x):
338
x = self.downsample(x)
339
- if self.grad_checkpointing:
+ if self.grad_checkpointing and not torch.jit.is_scripting():
340
x = checkpoint_seq(self.blocks, x)
341
else:
342
x = self.blocks(x)
timm/models/efficientformer_v2.py
@@ -499,7 +499,7 @@ def __init__(
499
500
501
502
503
504
505
0 commit comments