pytorch
e8b0f504 - Fix unpicklable object in AveragedModel (#95979)

Commit
1 year ago
Fix unpicklable object in AveragedModel (#95979) Fixes #95376 Don't store the callable `avg_fn`, instead test if `avg_fn` is None and call the default impl if it's not. Pull Request resolved: https://github.com/pytorch/pytorch/pull/95979 Approved by: https://github.com/janeyx99
Author
Committer
Parents
Loading