After losing a stock with Pokemon trainer, if you are holding the analog stick (at least to the left), you will upB out of your pokeball upon respawn.
Edit: actually, having a hard time duplicating it when retrying, so I'm not sure exactly what triggers it, but I have upB'ed out of respawn a...