Fix automatic scripting for quantized models (#18089)

This commit is contained in:
Maxim Vafin 2023-06-16 08:51:21 +02:00 committed by GitHub
parent 3d79bd1ac5
commit 77584d301e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -176,6 +176,8 @@ class TorchScriptPythonDecoder (Decoder):
break
if not skip_freeze:
f_model = torch.jit.freeze(scripted)
else:
f_model = scripted
else:
f_model = pt_module