Skip to content

Commit

Permalink
fix ps gpu dense; (PaddlePaddle#241)
Browse files Browse the repository at this point in the history
  • Loading branch information
danleifeng committed Sep 12, 2023
1 parent 1c182ca commit 2ad151b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/paddle/distributed/ps/the_one_ps.py
Original file line number Diff line number Diff line change
Expand Up @@ -970,7 +970,8 @@ def _get_tables(self):
else:
tables.append(globals()['SparseTable'](self.context, ctx))
else:
tables.append(globals()['DenseTable'](self.context, ctx))
if not self.use_ps_gpu:
tables.append(globals()['DenseTable'](self.context, ctx))
self.tensor_tables = self._get_tensor_tables()
tables.extend(self.tensor_tables)
tables.append(globals()['BarrierTable'](self.context, len(tables)))
Expand Down

0 comments on commit 2ad151b

Please sign in to comment.