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

“/” and "//" in easyfl #10

Open
worshipone opened this issue Oct 18, 2022 · 2 comments
Open

“/” and "//" in easyfl #10

worshipone opened this issue Oct 18, 2022 · 2 comments

Comments

@worshipone
Copy link

/ ——> true.divide
// ——> floor.divide

python==3.7.13
pytorch==1.6.0

@worshipone worshipone changed the title “/” and "//" in eastfl “/” and "//" in easyfl Oct 18, 2022
@worshipone
Copy link
Author

worshipone commented Oct 18, 2022

solution:
torch.div——>torch.true_divide

@weimingwill
Copy link
Owner

Thanks for pointing out this. Simply changing from torch.div to torch.true_divide may not be compatible with older versions of PyTorch.

You can create a pull request to fix this issue while maintaining backward compatibility. Thanks

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

No branches or pull requests

2 participants