Skip to content

Commit

Permalink
Support torch > 1.8.0
Browse files Browse the repository at this point in the history
Signed-off-by: Cheng, Penghui <[email protected]>
  • Loading branch information
PenghuiCheng committed Aug 14, 2023
1 parent 6b92ebb commit b40c0b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion neural_compressor/adaptor/pytorch.py
Original file line number Diff line number Diff line change
Expand Up @@ -847,7 +847,7 @@ def __init__(self, framework_specific_info):
self.fp32_results = []
self.fp32_preds_as_label = False

if self.version.release >= Version("2.0").release:
if self.version.release >= Version("1.8").release:
static_quant_mapping = tq.quantization_mappings.get_default_static_quant_module_mappings()
self.fused_op_list = \
[static_quant_mapping[key] for key in static_quant_mapping if "intrinsic." in str(key)]
Expand Down

0 comments on commit b40c0b1

Please sign in to comment.