Skip to content

Commit

Permalink
chore: use approximate in torch cifar training evaluation
Browse files Browse the repository at this point in the history
  • Loading branch information
jfrery committed Apr 16, 2024
1 parent 10a7f21 commit 69e5911
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions use_case_examples/cifar/cifar_brevitas_training/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,7 @@ run_example: one two
one:
@python evaluate_one_example_fhe.py

two:
@python evaluate_torch_cml.py
# FIXME: https://github.com/zama-ai/concrete-ml-internal/issues/4389
# too slow on cpu
# two:
# @python evaluate_torch_cml.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def main(args):
input_set,
n_bits={"model_inputs": 8, "model_outputs": 8},
configuration=cfg,
rounding_threshold_bits={"n_bits": rounding_threshold_bits, "method": "EXACT"}
rounding_threshold_bits={"n_bits": rounding_threshold_bits, "method": "APPROXIMATE"}
if rounding_threshold_bits is not None
else None,
)
Expand Down

0 comments on commit 69e5911

Please sign in to comment.