feat: update compile_torch_model to return compiled quantized module

closes #898
This commit is contained in:
Arthur Meyre
2021-12-02 16:17:52 +01:00
parent bf70396340
commit c7255dfd66
5 changed files with 109 additions and 62 deletions

View File

@@ -85,7 +85,7 @@ def test_quantized_module_compilation(
homomorphic_predictions = homomorphic_predictions.reshape(dequant_predictions.shape)
# Make sure homomorphic_predictions are the same as dequant_predictions
if numpy.isclose(homomorphic_predictions.ravel(), dequant_predictions.ravel()).all():
if numpy.isclose(homomorphic_predictions, dequant_predictions).all():
return
# Bad computation after nb_tries