Skip to content

Commit 3513e78

Browse files
Fix function import in compile/builders.py
1 parent 28c8b7c commit 3513e78

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pytensor/compile/builders.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from typing import Optional, cast
77

88
import pytensor.tensor as pt
9-
from pytensor.compile import function
9+
from pytensor.compile.function import function
1010
from pytensor.compile.function.pfunc import rebuild_collect_shared
1111
from pytensor.compile.mode import optdb
1212
from pytensor.compile.sharedvalue import SharedVariable

tests/tensor/rewriting/test_linalg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,4 +383,4 @@ def test_local_lift_through_linalg(constructor, f_op, f, g_op, g):
383383

384384
f2(*test_vals)
385385

386-
np.testing.assert_allclose(f1(*test_vals), f2(*test_vals))
386+
np.testing.assert_allclose(f1(*test_vals), f2(*test_vals), atol=1e-8)

0 commit comments

Comments
 (0)