facebookresearch / facebookresearch/fairscale

[checkpoint]: error when convert sync bn is done after checkpoint

Open
#660 5 comments 1 reaction 0 assignees View on GitHub
Dominant language
Python
Stars
3.4k
Forks
293
PR merge metrics
No merged PRs in 30d

Description

@prigoyal found a bug when checkpoint is done before sync BN conversion, it fails with:

```
torch.nn.modules.module.ModuleAttributeError: 'SyncBatchNorm' object has no attribute '_checkpoint_fwd_counter'
```

reversing the order avoids this problem. It would be nice to detect this and tell users what's going on and how to fix it.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.