oneflow
oneflow copied to clipboard
Fix the problem of not checking if attr exists for cpg
- When load network saved using previous version of oneflow, as the cpg attribute not exist, the
self.cpg
reference will fail. - PR address this problem by adding an additional layer of check.