EasyFL icon indicating copy to clipboard operation
EasyFL copied to clipboard

“/” and "//" in easyfl

Open worshipone opened this issue 3 years ago • 2 comments

/ ——> true.divide // ——> floor.divide python==3.7.13 pytorch==1.6.0

worshipone avatar Oct 18 '22 12:10 worshipone

solution: torch.div——>torch.true_divide

worshipone avatar Oct 18 '22 12:10 worshipone

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

weimingwill avatar Feb 26 '23 06:02 weimingwill