-
Notifications
You must be signed in to change notification settings - Fork 198
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
AffineQuantizedTensor dispatch: attempting to run unimplemented operator/function: aten.linear.default
#875
Comments
Thanks for reporting the issue, this should be straightforward to add I think, should be similar to ao/torchao/dtypes/affine_quantized_tensor.py Lines 1486 to 1510 in 85d03de
|
jerryzh168
added a commit
to jerryzh168/ao
that referenced
this issue
Sep 13, 2024
Summary: Fixes: pytorch#875 Test Plan: Test locally with tutorials/quantize_vit/run_vit_b_quant.py with: ``` with torch.inference_mode(): benchmark_model(model, 20, inputs) ``` but can't repro the issue in unit tests Reviewers: Subscribers: Tasks: Tags:
Merged
jerryzh168
added a commit
that referenced
this issue
Sep 13, 2024
Summary: Fixes: #875 Test Plan: Test locally with tutorials/quantize_vit/run_vit_b_quant.py with: ``` with torch.inference_mode(): benchmark_model(model, 20, inputs) ``` but can't repro the issue in unit tests Reviewers: Subscribers: Tasks: Tags:
jainapurva
pushed a commit
that referenced
this issue
Sep 22, 2024
Summary: Fixes: #875 Test Plan: Test locally with tutorials/quantize_vit/run_vit_b_quant.py with: ``` with torch.inference_mode(): benchmark_model(model, 20, inputs) ``` but can't repro the issue in unit tests Reviewers: Subscribers: Tasks: Tags:
jainapurva
pushed a commit
that referenced
this issue
Sep 23, 2024
Summary: Fixes: #875 Test Plan: Test locally with tutorials/quantize_vit/run_vit_b_quant.py with: ``` with torch.inference_mode(): benchmark_model(model, 20, inputs) ``` but can't repro the issue in unit tests Reviewers: Subscribers: Tasks: Tags:
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am using nightly
torchao
andtorch
Getting the following error
The issue happens when using
with torch.inference_mode():
The issue is not seen with with
torch.no_grad():
Here is the code for repro
The text was updated successfully, but these errors were encountered: