mirror of
https://github.com/zama-ai/concrete.git
synced 2026-04-17 03:00:54 -04:00
feat: add support for np.ones_like and np.zeros_like
This commit is contained in:
@@ -447,6 +447,20 @@ def fusable_with_one_of_the_start_nodes_is_lca_generator():
|
||||
},
|
||||
id="np.where(x < 5, x * 3, x)",
|
||||
),
|
||||
pytest.param(
|
||||
lambda x: x + np.ones_like(x),
|
||||
{
|
||||
"x": {"status": "encrypted", "range": [0, 10]},
|
||||
},
|
||||
id="x + np.ones_like(x)",
|
||||
),
|
||||
pytest.param(
|
||||
lambda x: x + np.zeros_like(x),
|
||||
{
|
||||
"x": {"status": "encrypted", "range": [0, 10]},
|
||||
},
|
||||
id="x + np.zeros_like(x)",
|
||||
),
|
||||
],
|
||||
)
|
||||
def test_others(function, parameters, helpers):
|
||||
|
||||
Reference in New Issue
Block a user