File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 4646from pytensor .graph .fg import FunctionGraph
4747from pytensor .graph .op import Op
4848from pytensor .scalar .basic import Cast
49- from pytensor .scalar .basic import identity as scalar_identity
5049from pytensor .scan .op import Scan
51- from pytensor .tensor .basic import _as_tensor_variable
50+ from pytensor .tensor .basic import _as_tensor_variable , tensor_copy
5251from pytensor .tensor .elemwise import Elemwise
5352from pytensor .tensor .random .op import RandomVariable
5453from pytensor .tensor .random .type import RandomType
@@ -387,7 +386,7 @@ def hessian_diag(f, vars=None):
387386 return empty_gradient
388387
389388
390- identity = Elemwise ( scalar_identity , name = "identity" )
389+ identity = tensor_copy
391390
392391
393392def make_shared_replacements (point , vars , model ):
You can’t perform that action at this time.
0 commit comments