williamFalcon / pytorch-complex-tensor

Unofficial complex tensor and scalar support for Pytorch
MIT License
78 stars 8 forks source link

RecursionError: maximum recursion depth exceeded while calling a Python object #19

Open SadAngelF opened 1 year ago

SadAngelF commented 1 year ago

from pytorch_complex_tensor import ComplexTensor import math import torch import torch.nn as nn import torch.nn.functional as F import numpy as np

torch equivalent

C = ComplexTensor([[1, 1, 1], [2, 2, 2], [3, 3, 3], [4, 4, 4]]) C.requires_grad = True print(C.abs())

I run the code above, then I get the wrong: RecursionError: maximum recursion depth exceeded while calling a Python object