pytorch-complex-tensor
pytorch-complex-tensor copied to clipboard
RecursionError: maximum recursion depth exceeded while calling a Python object
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