We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
RuntimeError: result type Float can't be cast to the desired output type Long
The text was updated successfully, but these errors were encountered:
has anyone found the solution to this bug? I also encountered it.
Sorry, something went wrong.
has anyone found the solution to this bug? I also encountered it. I solved this issue by the following code (add a "if" statement).
for param, ema_param in zip(self.params, self.ema_params): if ema_param.dtype==torch.float32: ema_param.mul_(self.alpha) ema_param.add_(param * one_minus_alpha) # customized weight decay param.mul_(1 - self.wd)
No branches or pull requests
RuntimeError: result type Float can't be cast to the desired output type Long
The text was updated successfully, but these errors were encountered: