Thank your reply. I just curious why the test input value isn’t computed by the seed of 1234 in this condition (acos, cuda:0, linux).
In other conditions, I can get the same value as Pytorch source code 1 with the below snippet.
Anyway, it’s not a big issue so far.
import torch
span = 1.99998
low = -0.99999
size = (20,)
float_dtype = torch.float64
torch.manual_seed(1234)
device = torch.device(“cuda:0”) #change cpu or other
real = torch.rand(size, device=device, dtype=float_dtype) * span + low
imag = torch.rand(size, device=device, dtype=float_dtype) * span + low
c = torch.complex(real, imag)
c.requires_grad = True
print(f"c = {c}")