Swap# class discopy.tensor.Swap(*args, **kwargs)[source]# Bases: discopy.frobenius.Swap, Box A tensor swap is a frobenius swap in a tensor diagram. Parameters: left (Dim) – The type on the top left and bottom right. right (Dim) – The type on the top right and bottom left.