Skip to content

Commit

Permalink
fix(graphs): support torch v2.6 (#122)
Browse files Browse the repository at this point in the history
  • Loading branch information
cathalobrien authored Feb 10, 2025
1 parent beb8c69 commit dfef377
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion graphs/src/anemoi/graphs/describe.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class GraphDescriptor:

def __init__(self, path: Union[str, Path], **kwargs):
self.path = path
self.graph = torch.load(self.path)
self.graph = torch.load(self.path, weights_only=False)

@property
def total_size(self):
Expand Down
2 changes: 1 addition & 1 deletion graphs/src/anemoi/graphs/inspect.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def __init__(
**kwargs,
):
self.path = path
self.graph = torch.load(self.path)
self.graph = torch.load(self.path, weights_only=False)
self.output_path = output_path
self.show_attribute_distributions = show_attribute_distributions
self.show_nodes = show_nodes
Expand Down

0 comments on commit dfef377

Please sign in to comment.