mirror of
https://github.com/zama-ai/concrete.git
synced 2026-02-09 03:55:04 -05:00
feat: update compile_torch_model to return compiled quantized module
closes #898
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user