Swap InputT/StateT layers