mirror of
https://github.com/zama-ai/concrete.git
synced 2026-02-09 03:55:04 -05:00
feat: make the inference in examples homomorphic
This commit is contained in:
@@ -91,8 +91,6 @@ jobs:
|
||||
# TODO: remove this when JIT doesn't need this
|
||||
LD_PRELOAD: /compiler/build/lib/Runtime/libZamalangRuntime.so
|
||||
run: |
|
||||
make strip_nb
|
||||
make notebook_timeout
|
||||
make pytest_nb
|
||||
- name: Test coverage
|
||||
id: coverage
|
||||
|
||||
4
Makefile
4
Makefile
@@ -160,10 +160,6 @@ strip_nb:
|
||||
poetry run python ./script/nbmake_utils/notebook_sanitize.py examples
|
||||
.PHONY: strip_nb
|
||||
|
||||
notebook_timeout:
|
||||
poetry run python ./script/nbmake_utils/notebook_test_timeout.py examples
|
||||
.PHONY: notebook_timeout
|
||||
|
||||
pytest_nb:
|
||||
poetry run pytest --nbmake examples/*.ipynb
|
||||
.PHONY: pytest_nb
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,23 +0,0 @@
|
||||
import json
|
||||
import sys
|
||||
|
||||
from pathlib import Path
|
||||
|
||||
|
||||
def main():
|
||||
path_to_glob = Path(sys.argv[1])
|
||||
notebooks = path_to_glob.glob("*.ipynb")
|
||||
|
||||
for notebook_file in notebooks:
|
||||
with open(notebook_file, "r") as f:
|
||||
notebook_dict = json.load(f)
|
||||
execution = notebook_dict["metadata"].get("execution", {})
|
||||
execution["timeout"] = 1000
|
||||
notebook_dict["metadata"]["execution"] = execution
|
||||
|
||||
with open(notebook_file, "w", newline="\n") as f:
|
||||
json.dump(notebook_dict, f, indent=1, ensure_ascii=False)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
Reference in New Issue
Block a user