PyMC3 elementwise if condition

TypeError: Condition given to the op has to be a scalar with 0 standing for False, anything else for True