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

Fix RuntimeError: Can't call numpy() on Tensor that requires grad #3

Merged
merged 2 commits into from
Nov 11, 2021

Conversation

XcrossD
Copy link

@XcrossD XcrossD commented Nov 4, 2021

Fixes #1

@XcrossD
Copy link
Author

XcrossD commented Nov 4, 2021

I encountered wrong tensor type errors when running
python main.py --dataset Mnist-alpha0.1-ratio0.5 --algorithm FedGen --batch_size 32 --num_glob_iters 200 --local_epochs 20 --num_users 10 --lamda 1 --learning_rate 0.01 --model cnn --personal_learning_rate 0.01 --times 3
Not tested on other algorithms

@XcrossD XcrossD mentioned this pull request Nov 4, 2021
@zhuangdizhu zhuangdizhu merged commit 7c6441b into zhuangdizhu:main Nov 11, 2021
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.

None yet

2 participants