We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 26fb5ef commit ae6b134Copy full SHA for ae6b134
1 file changed
torchvision/models/densenet.py
@@ -61,7 +61,7 @@ def call_checkpoint_bottleneck(self, input: List[Tensor]) -> Tensor:
61
def closure(*inputs):
62
return self.bn_function(inputs)
63
64
- return cp.checkpoint(closure, *input)
+ return cp.checkpoint(closure, *input, use_reentrant=False)
65
66
@torch.jit._overload_method # noqa: F811
67
def forward(self, input: List[Tensor]) -> Tensor: # noqa: F811
0 commit comments