Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[install] torch.complex32 has been removed from 1.11.0 #609

Merged
merged 1 commit into from
Mar 16, 2022

Conversation

ben-freist
Copy link
Contributor

According to pytorch/pytorch#72721 complex32
will be brought back in a later version, this constraint should be
removed then.

This addresses issue #608.

@mpariente
Copy link
Collaborator

I'm hesitant to make this change, because we should allow our users to upgrade torch versions.

@mpariente
Copy link
Collaborator

Any alternative solution?

@ben-freist
Copy link
Contributor Author

Maybe like this?

According to pytorch/pytorch#72721 complex32
will be brought back in a later version, the check should be removed
then.
@ben-freist ben-freist changed the title [install] torch.complex32 has been removed from 1.11.0, cap the version [install] torch.complex32 has been removed from 1.11.0 Mar 16, 2022
@mpariente mpariente merged commit f4a563b into asteroid-team:master Mar 16, 2022
@mpariente
Copy link
Collaborator

Perfect thanks !

@ben-freist ben-freist deleted the fix_torch_version branch March 16, 2022 13:27
@Abinaya-0106
Copy link

What should be done for this error?
My code is:
!pip install opacus
pip install --upgrade torch torchvision
pip install py3
from tqdm import tqdm

import torch as th
from torchvision import datasets, transforms
from opacus import PrivacyEngine
!pip install syft==0.2.9
import syft as sy

Getting error:AttributeError Traceback (most recent call last)
in ()
----> 1 import syft as sy

9 frames
/usr/local/lib/python3.7/dist-packages/syft/serde/torch/serde.py in ()
17 torch.float32: "float32",
18 torch.float64: "float64",
---> 19 torch.complex32: "complex32",
20 torch.complex64: "complex64",
21 torch.complex128: "complex128",

AttributeError: module 'torch' has no attribute 'complex32'

what should be done?

@mpariente
Copy link
Collaborator

What is syft?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants