Skip to content

Commit

Permalink
Merge pull request #510 from ACEsuit/develop
Browse files Browse the repository at this point in the history
change dynamo to optional
  • Loading branch information
ilyes319 authored Jul 10, 2024
2 parents 299385b + ab32e94 commit 9561e09
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 9561e09

Please sign in to comment.