will swap axes, dedup and then unswap