PyTensor graph can’t evaluate straight forward shape comparison right now (causing by this code), what is the workaround for now?
Code
import pytensor.tensor as pt
t = pt.as_tensor_variable([10])
if t.shape[0] > 10:
print("Hello world!")
else:
print("Hi!")
Output
TypeError: Variables do not support boolean operations.