Skip to content

Commit

Permalink
Specify weights_only=False to avoid a FutureWarning
Browse files Browse the repository at this point in the history
  • Loading branch information
dagardner-nv committed Oct 15, 2024
1 parent be4597a commit 10ad08a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/gnn_fraud_detection_pipeline/stages/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ def load_model(model_dir: str,
n_layers=hyperparameters['n_layers'],
embedding_size=hyperparameters['embedding_size'],
target=hyperparameters['target_node']).to(device)
model.load_state_dict(torch.load(os.path.join(model_dir, 'model.pt')))
model.load_state_dict(torch.load(os.path.join(model_dir, 'model.pt'), weights_only=False))

return model, graph, hyperparameters

Expand Down

0 comments on commit 10ad08a

Please sign in to comment.