Unverified Commit ae6b134c authored by Sergii Dymchenko's avatar Sergii Dymchenko Committed by GitHub
Browse files

Pass use_reentrant for checkpoint (#8180)

parent 26fb5efe
......@@ -61,7 +61,7 @@ class _DenseLayer(nn.Module):
def closure(*inputs):
return self.bn_function(inputs)
return cp.checkpoint(closure, *input)
return cp.checkpoint(closure, *input, use_reentrant=False)
@torch.jit._overload_method # noqa: F811
def forward(self, input: List[Tensor]) -> Tensor: # noqa: F811
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment