You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think "map(lambda ddp: ddp.no_sync, ddps)" should be changed to "list(map(lambda ddp: ddp.no_sync, ddps))"
Otherwise, since map is an iterator, it can be used only once, and then the function of gradient_accumulate cannot work well.
The text was updated successfully, but these errors were encountered:
With ref to :
stylegan2-pytorch/stylegan2_pytorch/stylegan2_pytorch.py
Lines 215 to 226 in 0588213
I think "
map(lambda ddp: ddp.no_sync, ddps)
" should be changed to "list(map(lambda ddp: ddp.no_sync, ddps))
"Otherwise, since map is an iterator, it can be used only once, and then the function of gradient_accumulate cannot work well.
The text was updated successfully, but these errors were encountered: