Skip to content

Commit f2c94d9

Browse files
authored
Merge pull request #136 from GrzegorzKarchNV/master
Fixing concatenation error for fp16 distributed training
2 parents 825ffa4 + df4a466 commit f2c94d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

distributed.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def allreduce_params():
140140
buckets = {}
141141
for param in module.parameters():
142142
if param.requires_grad and param.grad is not None:
143-
tp = type(param.data)
143+
tp = param.data.dtype
144144
if tp not in buckets:
145145
buckets[tp] = []
146146
buckets[tp].append(param)

0 commit comments

Comments
 (0)