EasyFL
EasyFL copied to clipboard
“/” and "//" in easyfl
/ ——> true.divide
// ——> floor.divide
python==3.7.13
pytorch==1.6.0
solution:
torch.div——>torch.true_divide

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