ise-uiuc / FreeFuzz

Free Lunch for Testing: Fuzzing Deep-Learning Libraries from Open Source (ICSE'22)
72 stars 14 forks source link

torch.complex32 missing in the stable torch release #1

Closed Shangyint closed 2 years ago

Shangyint commented 2 years ago

Executing cd src && python FreeFuzz.py --conf demo_torch.conf yield the following error

  File "/home/shangyit/projects/FreeFuzz/src/classes/torch_api.py", line 14, in TorchArgument
    torch.complex32, torch.complex64, torch.complex128, torch.bool
  AttributeError: module 'torch' has no attribute 'complex32'

The torch developers did temporary disable this field in release 1.11.0 (newest stable). See this.

YangChenyuan commented 2 years ago

Yes, complex32 is disabled in the current version (1.11.0) of PyTorch due to https://github.com/pytorch/pytorch/issues/71680. You can delete torch.complex32 at https://github.com/ise-uiuc/FreeFuzz/blob/881fc4eca1d5a8fa29f6980ba3d042d8e210ee93/src/classes/torch_api.py#L14

YangChenyuan commented 2 years ago

For the complex32 in PyTorch, it is still in construction. You can refer https://github.com/pytorch/pytorch/issues/74537 to see the current progress