Skip to content

Commit

Permalink
change dynamo to optional
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyes319 committed Jul 10, 2024
1 parent 25e3596 commit ab32e94
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion mace/tools/compile.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
from functools import wraps
from typing import Callable, Tuple

import torch._dynamo as dynamo
try:
import torch._dynamo as dynamo
except ImportError:
dynamo = None
from e3nn import get_optimization_defaults, set_optimization_defaults
from torch import autograd, nn
from torch.fx import symbolic_trace
Expand Down
3 changes: 2 additions & 1 deletion tests/test_hessian.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import pytest
import numpy as np
import pytest
from ase.build import fcc111

from mace.calculators import mace_mp


Expand Down

0 comments on commit ab32e94

Please sign in to comment.