Skip to content

Commit d7ffee8

Browse files
covertgricardoV94
authored andcommitted
Fix DeprecationWarning from scipy.sparse.base
1 parent 5521d82 commit d7ffee8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pytensor/sparse/basic.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def _is_dense(x):
129129
return isinstance(x, np.ndarray)
130130

131131

132-
@_as_symbolic.register(scipy.sparse.base.spmatrix)
132+
@_as_symbolic.register(scipy.sparse.spmatrix)
133133
def as_symbolic_sparse(x, **kwargs):
134134
return as_sparse_variable(x, **kwargs)
135135

0 commit comments

Comments
 (0)