the error seems to happen when there are complex numbers

is my compression not correct for complex tensors?