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
torch_directml==0.2.2.dev240614
import torch import torch_directml device = torch_directml.device() model = torch.nn.Linear(3, 128).eval().to(device) with torch.inference_mode(): x = torch.zeros(4, 3).to(device) z = model(x)
RuntimeError: Cannot set version_counter for inference tensor
Using torch.no_grad() instead of torch.inference_mode() works fine.
torch.no_grad()
torch.inference_mode()
The text was updated successfully, but these errors were encountered:
No branches or pull requests
torch_directml==0.2.2.dev240614
Using
torch.no_grad()
instead oftorch.inference_mode()
works fine.The text was updated successfully, but these errors were encountered: