Skip to content

Commit 0b1cddc

Browse files
Clean up imports in optimize.py
1 parent f3a8370 commit 0b1cddc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pytensor/tensor/optimize.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,12 @@
1010
from scipy.optimize import root_scalar as scipy_root_scalar
1111

1212
import pytensor.scalar as ps
13-
from pytensor import Variable, function, graph_replace
13+
from pytensor.compile.function import function
1414
from pytensor.gradient import grad, hessian, jacobian
1515
from pytensor.graph import Apply, Constant, FunctionGraph
1616
from pytensor.graph.basic import ancestors, truncated_graph_inputs
1717
from pytensor.graph.op import ComputeMapType, HasInnerGraph, Op, StorageMapType
18+
from pytensor.graph.replace import graph_replace
1819
from pytensor.tensor.basic import (
1920
atleast_2d,
2021
concatenate,
@@ -24,7 +25,7 @@
2425
)
2526
from pytensor.tensor.math import dot
2627
from pytensor.tensor.slinalg import solve
27-
from pytensor.tensor.variable import TensorVariable
28+
from pytensor.tensor.variable import TensorVariable, Variable
2829

2930

3031
_log = logging.getLogger(__name__)

0 commit comments

Comments
 (0)