Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add BatchNorm operator in compile_torch tests #488

Merged
merged 1 commit into from
Feb 7, 2024

Conversation

RomanBredehoft
Copy link
Collaborator

We should make sure to test the torch operators that we claim supporting, but maybe there's a better place where to do so (or have a dedicated test ?), so feel free to share your opinion on it

@RomanBredehoft RomanBredehoft requested a review from a team as a code owner February 6, 2024 13:59
@cla-bot cla-bot bot added the cla-signed label Feb 6, 2024
Copy link

github-actions bot commented Feb 6, 2024

⚠️ Known flaky tests have been re-run ⚠️

One or several tests initially failed but were detected as known flaky tests. They therefore have been re-run and passed. See below for more details.

Failed tests details

Known flaky tests that initially failed:

  • tests/torch/test_compile_torch.py::test_compile_torch_or_onnx_conv_networks[True-True-CNN-relu]- tests/torch/test_compile_torch.py::test_compile_torch_or_onnx_conv_networks[True-True-CNN_grouped-relu]

Copy link

github-actions bot commented Feb 6, 2024

Coverage passed ✅

Coverage details

---------- coverage: platform linux, python 3.8.18-final-0 -----------
Name                                                      Stmts   Miss  Cover
-----------------------------------------------------------------------------
src/__init__.py                                               0      0   100%
src/concrete/__init__.py                                      0      0   100%
src/concrete/ml/__init__.py                                   1      0   100%
src/concrete/ml/common/__init__.py                            1      0   100%
src/concrete/ml/common/check_inputs.py                       16      0   100%
src/concrete/ml/common/debugging/__init__.py                  1      0   100%
src/concrete/ml/common/debugging/custom_assert.py            10      0   100%
src/concrete/ml/common/serialization/__init__.py              5      0   100%
src/concrete/ml/common/serialization/decoder.py              67      0   100%
src/concrete/ml/common/serialization/dumpers.py               7      0   100%
src/concrete/ml/common/serialization/encoder.py              85      0   100%
src/concrete/ml/common/serialization/loaders.py               8      0   100%
src/concrete/ml/common/utils.py                             125      0   100%
src/concrete/ml/deployment/__init__.py                        1      0   100%
src/concrete/ml/deployment/fhe_client_server.py             115      0   100%
src/concrete/ml/onnx/__init__.py                              0      0   100%
src/concrete/ml/onnx/convert.py                              90      0   100%
src/concrete/ml/onnx/onnx_impl_utils.py                      58      0   100%
src/concrete/ml/onnx/onnx_model_manipulations.py            101      0   100%
src/concrete/ml/onnx/onnx_utils.py                           41      0   100%
src/concrete/ml/onnx/ops_impl.py                            356      0   100%
src/concrete/ml/pytest/__init__.py                            1      0   100%
src/concrete/ml/pytest/torch_models.py                      614      0   100%
src/concrete/ml/pytest/utils.py                             154      0   100%
src/concrete/ml/quantization/__init__.py                      5      0   100%
src/concrete/ml/quantization/base_quantized_op.py           295      0   100%
src/concrete/ml/quantization/post_training.py               257      0   100%
src/concrete/ml/quantization/qat_quantizers.py                6      0   100%
src/concrete/ml/quantization/quantized_module.py            222      0   100%
src/concrete/ml/quantization/quantized_module_passes.py     105      0   100%
src/concrete/ml/quantization/quantized_ops.py               673      0   100%
src/concrete/ml/quantization/quantizers.py                  316      0   100%
src/concrete/ml/search_parameters/__init__.py                 1      0   100%
src/concrete/ml/search_parameters/p_error_search.py         122      0   100%
src/concrete/ml/sklearn/__init__.py                          47      0   100%
src/concrete/ml/sklearn/_fhe_training_utils.py               26      0   100%
src/concrete/ml/sklearn/base.py                             659      0   100%
src/concrete/ml/sklearn/glm.py                              156      0   100%
src/concrete/ml/sklearn/linear_model.py                     777      0   100%
src/concrete/ml/sklearn/neighbors.py                         71      0   100%
src/concrete/ml/sklearn/qnn.py                              287      0   100%
src/concrete/ml/sklearn/qnn_module.py                       100      0   100%
src/concrete/ml/sklearn/rf.py                               178      0   100%
src/concrete/ml/sklearn/svm.py                              139      0   100%
src/concrete/ml/sklearn/tree.py                             151      0   100%
src/concrete/ml/sklearn/tree_to_numpy.py                    142      0   100%
src/concrete/ml/sklearn/xgb.py                              266      0   100%
src/concrete/ml/torch/__init__.py                             1      0   100%
src/concrete/ml/torch/compile.py                             74      0   100%
src/concrete/ml/torch/hybrid_model.py                       148      0   100%
src/concrete/ml/torch/numpy_module.py                        27      0   100%
src/concrete/ml/version.py                                    1      0   100%
-----------------------------------------------------------------------------
TOTAL                                                      7109      0   100%

@RomanBredehoft RomanBredehoft merged commit 503e049 into main Feb 7, 2024
11 checks passed
@RomanBredehoft RomanBredehoft deleted the chore/add_batchnorm_in_compile_torch_tests branch February 7, 2024 10:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants