Skip to content

Commit

Permalink
[Bugfix] Fix RGCN Example (#3785)
Browse files Browse the repository at this point in the history
  • Loading branch information
yaox12 authored Feb 28, 2022
1 parent ec64581 commit 861666f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions examples/pytorch/rgcn/entity_sample_multi_gpu.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ def main(args, devices):

# Create csr/coo/csc formats before launching training processes.
# This avoids creating certain formats in each sub-process, which saves momory and CPU.
g = data[0]
g.create_formats_()

n_gpus = len(devices)
Expand Down

0 comments on commit 861666f

Please sign in to comment.