Skip to content

Commit

Permalink
Convert inputs to ndarrays in Blockwise.perform
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonwillard committed Nov 11, 2022
1 parent 96853ee commit c9ad602
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions aesara/tensor/blockwise.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,7 @@ def py_func(*inner_inputs):
# TODO:This can be avoided by making a single dummy node
# But will that cover all cases?
inner_node = self.op.make_node(*inner_inputs)
inner_inputs = [np.asarray(i) for i in inner_inputs]
if isinstance(self.op, DimShuffle):
self.op.perform(inner_node, inner_inputs, res, params=None)
else:
Expand Down

0 comments on commit c9ad602

Please sign in to comment.