File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -369,7 +369,7 @@ def get_support_shape(
369369 support_shape_offset = [0 ] * ndim_supp
370370 elif isinstance (support_shape_offset , int ):
371371 support_shape_offset = [support_shape_offset ] * ndim_supp
372- inferred_support_shape : Sequence [int | np .ndarray | Variable ] | None = None
372+ inferred_support_shape : Sequence [int | np .ndarray | TensorVariable ] | None = None
373373
374374 if shape is not None :
375375 shape = to_tuple (shape )
@@ -411,7 +411,7 @@ def get_support_shape(
411411 # There were two sources of support_shape, make sure they are consistent
412412 inferred_support_shape = [
413413 cast (
414- Variable ,
414+ TensorVariable ,
415415 Assert (msg = "support_shape does not match respective shape dimension" )(
416416 inferred , pt .eq (inferred , explicit )
417417 ),
Original file line number Diff line number Diff line change @@ -164,6 +164,7 @@ class Covariance(BaseCovariance):
164164
165165 def __init__ (self , input_dim : int , active_dims : IntSequence | None = None ):
166166 self .input_dim = input_dim
167+ self .active_dims : np .ndarray [Any , np .dtype [np .int_ ]]
167168 if active_dims is None :
168169 self .active_dims = np .arange (input_dim )
169170 else :
Original file line number Diff line number Diff line change @@ -895,7 +895,7 @@ def coords(self) -> dict[str, tuple | None]:
895895 return self ._coords
896896
897897 @property
898- def dim_lengths (self ) -> dict [str , Variable ]:
898+ def dim_lengths (self ) -> dict [str , TensorVariable ]:
899899 """The symbolic lengths of dimensions in the model.
900900
901901 The values are typically instances of ``TensorVariable`` or ``ScalarSharedVariable``.
You can’t perform that action at this time.
0 commit comments