Skip to content

Commit

Permalink
fix UT of RTN on HPU (#2098)
Browse files Browse the repository at this point in the history
Signed-off-by: xin3he <xin3.he@intel.com>
Signed-off-by: Sun, Xuehao <xuehao.sun@intel.com>
  • Loading branch information
xin3he authored Dec 25, 2024
1 parent def933a commit fa8ad83
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .azure-pipelines/ut-3x-pt-fp8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ pr:
- neural_compressor/torch
- test/3x/torch/algorithms/fp8_quant
- test/3x/torch/quantization/fp8_quant
- test/3x/torch/quantization/weight_only/test_rtn.py
- test/3x/torch/quantization/weight_only/test_load.py
- setup.py
- requirements_pt.txt

Expand Down
1 change: 1 addition & 0 deletions test/3x/torch/quantization/weight_only/test_rtn.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
from neural_compressor.torch.utils import accelerator, is_hpex_available

device = accelerator.current_device_name()
torch.set_grad_enabled(False)


class ModelConv1d(torch.nn.Module):
Expand Down

0 comments on commit fa8ad83

Please sign in to comment.