Closed
Description
Description
If I use pt.specify_broadcastable
with the second argument equal to -1
it does not do anything. It needs the value of the axis in order to work. See the example:
import pytensor.tensor as pt
tensor = pt.tensor(shape=(5, 1), broadcastable=(False, False))
print(tensor.broadcastable)
tensor2 = pt.specify_broadcastable(tensor, -1)
print(tensor2.broadcastable)
tensor3 = pt.specify_broadcastable(tensor, 1)
print(tensor3.broadcastable)
(False, False)
(False, False)
(False, True)
I'm using PyTensor version 2.20.0