I mostly do active stretching, then swim around in the water a bit, especially if it's cold, otherwise when the mammalian diving reflex kicks in, your swim will suffer until you can get over it. Sometimes I'll do a little bit of jogging or ride the bike a little bit, but usually not much. I have seen people with trainers out though.