Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
LiSu committed Jan 29, 2024
1 parent 08decba commit 2691b0b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion examples/igbh/dist_train_rgnn.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,8 @@ def run_training_proc(local_proc_rank, num_nodes, node_rank, num_training_procs,
if ckpt_path is not None:
try:
ckpt = torch.load(ckpt_path)
except FileNotFoundError:
except FileNotFoundError as e:
print(f"Checkpoint file not found: {e}")
return -1

# Define model and optimizer.
Expand Down
3 changes: 2 additions & 1 deletion examples/igbh/train_rgnn_multi_gpu.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,8 @@ def run_training_proc(rank, world_size,
if ckpt_path is not None:
try:
ckpt = torch.load(ckpt_path)
except FileNotFoundError:
except FileNotFoundError as e:
print(f"Checkpoint file not found: {e}")
return -1

# Define model and optimizer.
Expand Down

0 comments on commit 2691b0b

Please sign in to comment.