Skip to content

Commit

Permalink
Use static shape information about inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelosthege committed Aug 18, 2023
1 parent f22edc0 commit 49e590a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sunode/wrappers/as_pytensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def read_dict(vals, name=None):
tensor, dim_names = vals
else:
try:
tensor, dim_names = vals, pt.as_tensor_variable(vals, dtype="float64").shape.eval()
tensor, dim_names = vals, pt.as_tensor_variable(vals, dtype="float64").type.shape
except MissingInputError as e:
raise ValueError(
'Shapes of tensors need to be statically '
Expand Down

0 comments on commit 49e590a

Please sign in to comment.