Skip to content

Commit 2ac7ceb

Browse files
Merge pull request #990 from ChenYuHo/patch-3
[NFC/TF] Set GPU index based on local_rank instead of rank
2 parents 22d6621 + a5f26ee commit 2ac7ceb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • TensorFlow/Recommendation/NCF

TensorFlow/Recommendation/NCF/ncf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ def main():
227227
# Create and run Data Generator in a separate thread
228228
data_generator = DataGenerator(
229229
args.seed,
230-
hvd.rank(),
230+
hvd.local_rank(),
231231
nb_users,
232232
nb_items,
233233
neg_mat,

0 commit comments

Comments
 (0)