Skip to content

Commit d169f2d

Browse files
committed
removed torch.compile to fix onnx unittests
Signed-off-by: realAsma <[email protected]>
1 parent 63a034f commit d169f2d

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

modelopt/torch/quantization/algorithms.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -668,12 +668,10 @@ def run_search(self):
668668
QuantRecipe.fold_pqs_to_weights(self.model)
669669

670670

671-
@torch.compile
672671
def _get_auto_quantize_score(grad_output, output_diff):
673672
return ((grad_output.float() ** 2) * (output_diff.float() ** 2)).sum()
674673

675674

676-
@torch.compile
677675
def _add_auto_quantize_score(grad_output, output_diff, score_tensor):
678676
score_tensor += _get_auto_quantize_score(grad_output, output_diff)
679677

0 commit comments

Comments
 (0)