From 78f82fb9a134405ef0524f3bbd9eb918b692447c Mon Sep 17 00:00:00 2001 From: Benoit Chevallier-Mames Date: Wed, 17 Nov 2021 10:40:14 +0100 Subject: [PATCH] chore: remove useless variables that make pcc didn't see --- tests/numpy/test_tracing.py | 50 -------------------------- tests/numpy/test_tracing_failures.py | 52 ---------------------------- 2 files changed, 102 deletions(-) diff --git a/tests/numpy/test_tracing.py b/tests/numpy/test_tracing.py index fd8e48246..7d5786252 100644 --- a/tests/numpy/test_tracing.py +++ b/tests/numpy/test_tracing.py @@ -16,56 +16,6 @@ from concrete.numpy import tracing OPERATIONS_TO_TEST = [ir.Add, ir.Sub, ir.Mul] -# Functions from tracing.NPTracer.LIST_OF_SUPPORTED_UFUNC, whose output -# is a float64, whatever the input type -LIST_OF_UFUNC_WHOSE_OUTPUT_IS_FLOAT64 = set( - [ - numpy.arccos, - numpy.arccosh, - numpy.arcsin, - numpy.arcsinh, - numpy.arctan, - numpy.arctanh, - numpy.cbrt, - numpy.ceil, - numpy.cos, - numpy.cosh, - numpy.deg2rad, - numpy.degrees, - numpy.exp, - numpy.exp2, - numpy.expm1, - numpy.fabs, - numpy.floor, - numpy.log, - numpy.log10, - numpy.log1p, - numpy.log2, - numpy.rad2deg, - numpy.radians, - numpy.rint, - numpy.sin, - numpy.sinh, - numpy.spacing, - numpy.sqrt, - numpy.tan, - numpy.tanh, - numpy.trunc, - ] -) - -# Functions from tracing.NPTracer.LIST_OF_SUPPORTED_UFUNC, whose output -# is a boolean, whatever the input type -LIST_OF_UFUNC_WHOSE_OUTPUT_IS_BOOL = set( - [ - numpy.isfinite, - numpy.isinf, - numpy.isnan, - numpy.signbit, - numpy.logical_not, - ] -) - @pytest.mark.parametrize( "operation", diff --git a/tests/numpy/test_tracing_failures.py b/tests/numpy/test_tracing_failures.py index 4847c905c..d1cbbf560 100644 --- a/tests/numpy/test_tracing_failures.py +++ b/tests/numpy/test_tracing_failures.py @@ -10,58 +10,6 @@ from concrete.common.representation import intermediate as ir from concrete.common.values import ClearScalar, EncryptedScalar, EncryptedTensor from concrete.numpy import tracing -OPERATIONS_TO_TEST = [ir.Add, ir.Sub, ir.Mul] - -# Functions from tracing.NPTracer.LIST_OF_SUPPORTED_UFUNC, whose output -# is a float64, whatever the input type -LIST_OF_UFUNC_WHOSE_OUTPUT_IS_FLOAT64 = set( - [ - numpy.arccos, - numpy.arccosh, - numpy.arcsin, - numpy.arcsinh, - numpy.arctan, - numpy.arctanh, - numpy.cbrt, - numpy.ceil, - numpy.cos, - numpy.cosh, - numpy.deg2rad, - numpy.degrees, - numpy.exp, - numpy.exp2, - numpy.expm1, - numpy.fabs, - numpy.floor, - numpy.log, - numpy.log10, - numpy.log1p, - numpy.log2, - numpy.rad2deg, - numpy.radians, - numpy.rint, - numpy.sin, - numpy.sinh, - numpy.spacing, - numpy.sqrt, - numpy.tan, - numpy.tanh, - numpy.trunc, - ] -) - -# Functions from tracing.NPTracer.LIST_OF_SUPPORTED_UFUNC, whose output -# is a boolean, whatever the input type -LIST_OF_UFUNC_WHOSE_OUTPUT_IS_BOOL = set( - [ - numpy.isfinite, - numpy.isinf, - numpy.isnan, - numpy.signbit, - numpy.logical_not, - ] -) - @pytest.mark.parametrize( "inputs",