Adding constraint to the parameter

Try p = tt.stack([p1, p2, p3])