Skip to content

Commit

Permalink
Update pytensor/scalar/basic.py
Browse files Browse the repository at this point in the history
Co-authored-by: Ricardo Vieira <28983449+ricardoV94@users.noreply.github.com>
  • Loading branch information
ferrine and ricardoV94 authored Aug 14, 2024
1 parent 5a7885a commit 5a58da4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytensor/scalar/basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -1145,7 +1145,7 @@ def _cast_scalar(x, dtype):
if hasattr(x, "astype"):
return x.astype(dtype)
else:
return x
return getattr(np, dtype)(x)

def perform(self, node, inputs, output_storage):
if self.nout == 1:
Expand Down

0 comments on commit 5a58da4

Please sign in to comment.