T.outer in predict() needs to adapt to new inputs