Closed pfeatherstone closed 1 year ago
The following works:
def cplxrearrange(x, pattern, **axes_lengths):
return Cplx(rearrange(x.real, pattern, **axes_lengths),
rearrange(x.imag, pattern, **axes_lengths))
This works!
from einops.layers.torch import Rearrange
CplxRearrange = CplxToCplx[Rearrange]
I would like the following to work:
I thought it would be possible composing
CplxToCplx
andrearrange
. But i get some long complicated errors. Am I mis-using something or is CplxToCplx not supposed to work for any type of function.