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(
369
369
support_shape_offset = [0 ] * ndim_supp
370
370
elif isinstance (support_shape_offset , int ):
371
371
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
373
373
374
374
if shape is not None :
375
375
shape = to_tuple (shape )
@@ -411,7 +411,7 @@ def get_support_shape(
411
411
# There were two sources of support_shape, make sure they are consistent
412
412
inferred_support_shape = [
413
413
cast (
414
- Variable ,
414
+ TensorVariable ,
415
415
Assert (msg = "support_shape does not match respective shape dimension" )(
416
416
inferred , pt .eq (inferred , explicit )
417
417
),
Original file line number Diff line number Diff line change @@ -164,6 +164,7 @@ class Covariance(BaseCovariance):
164
164
165
165
def __init__ (self , input_dim : int , active_dims : IntSequence | None = None ):
166
166
self .input_dim = input_dim
167
+ self .active_dims : np .ndarray [Any , np .dtype [np .int_ ]]
167
168
if active_dims is None :
168
169
self .active_dims = np .arange (input_dim )
169
170
else :
Original file line number Diff line number Diff line change @@ -895,7 +895,7 @@ def coords(self) -> dict[str, tuple | None]:
895
895
return self ._coords
896
896
897
897
@property
898
- def dim_lengths (self ) -> dict [str , Variable ]:
898
+ def dim_lengths (self ) -> dict [str , TensorVariable ]:
899
899
"""The symbolic lengths of dimensions in the model.
900
900
901
901
The values are typically instances of ``TensorVariable`` or ``ScalarSharedVariable``.
You can’t perform that action at this time.
0 commit comments