mirror of
https://github.com/zama-ai/concrete.git
synced 2026-04-17 03:00:54 -04:00
@@ -122,6 +122,9 @@ class BaseTracer(ABC):
|
||||
# some changes
|
||||
__radd__ = __add__
|
||||
|
||||
def __neg__(self) -> "BaseTracer":
|
||||
return 0 - self
|
||||
|
||||
def __sub__(self, other: Union["BaseTracer", Any]) -> "BaseTracer":
|
||||
if not self._supports_other_operand(other):
|
||||
return NotImplemented
|
||||
|
||||
@@ -513,6 +513,7 @@ def test_compile_function_multiple_outputs(
|
||||
pytest.param(lambda x, y: x + y + 64, ((0, 20), (0, 20)), ["x", "y"]),
|
||||
pytest.param(lambda x, y: 100 - y + x, ((0, 20), (0, 20)), ["x", "y"]),
|
||||
pytest.param(lambda x, y: 50 - y * 2 + x, ((0, 20), (0, 20)), ["x", "y"]),
|
||||
pytest.param(lambda x: -x + 50, ((0, 20),), ["x"]),
|
||||
],
|
||||
)
|
||||
def test_compile_and_run_correctness(
|
||||
|
||||
Reference in New Issue
Block a user