-
Notifications
You must be signed in to change notification settings - Fork 150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat/replace rounding by truncate [ON HOLD - NOT URGENT] #472
Closed
Closed
Changes from all commits
Commits
Show all changes
75 commits
Select commit
Hold shift + click to select a range
a3649b6
chore: Version 1
kcelia e12f13a
chore: rebase on main
kcelia d88d603
chore: add new rounded operators
kcelia e630ab5
chore: add rounded operators to ONNX_OPS_TO_NUMPY_IMPL_BOOL and remov…
kcelia 3ea13c8
chore: update convert.py
kcelia de51201
chore: add conversion to our rounded ops in onnx graph for trees
jfrery d79127f
chore: update conversion to rounded ops to use list of lsbs
jfrery dddead6
chore: fix lsb to remove according to op comparison
kcelia 6a33e62
chore: reconcial with Jordan's version
kcelia 9bf30ce
chore: update
kcelia c0107a6
chore: fix dump tests
kcelia 6c9a475
chore: rename variable
kcelia 3d858fe
chore: restore previous version
kcelia aac906f
chore: remove replace_operator_with_rounded_version function
kcelia 992f230
chore: update
kcelia 0243dc7
chore: add comments
kcelia dc08fb0
chore: fix divergence in graphs after serialization
kcelia 78f3185
chore: update
kcelia 4f9859b
chore: coverage
kcelia 251e91d
chore: update lsbs 2
kcelia 4d68c95
chore: update
kcelia d186ec8
chore: update
kcelia c1fcf5f
chore: update with new version
kcelia 012ddb6
chore: update lsb computation
kcelia 399ccc7
chore: fix assert c_r1 < c_r0 + 2
kcelia 6956996
chore: update serialized test
kcelia a9b2b06
chore: version for Jordan
kcelia ffa4577
chore: version with MSB=1
kcelia 9031531
chore: update
kcelia 71b56b2
chore: remove rounding in serialization
kcelia ae51470
chore: update v3
kcelia 0ad84a6
chore: update v4
kcelia 586d7db
chore: remove the assert that checks that :
kcelia 094df3e
chore: first test with truncate
kcelia 51dd5f6
chore: first test with truncate
kcelia e284bd2
chore: run ensemble model aggregation in FHE
jfrery 8c1e99a
chore: refresh notebooks
jfrery 70f1775
chore: update celia
kcelia 6262f12
chore: add op_input and op_leaves
kcelia 67e3572
chore: restore non fhe computation
kcelia 8e2e056
chore: update dump test
kcelia 3e2289a
chore: update test dump
kcelia a9c8385
chore: fix pipeline test
kcelia a43f04c
chore: fix rounding test by decreasing the n_bits value because no cr…
kcelia ecf5c66
chore: reduce n_bits in simulation test to 4 bits otherwise OOM
kcelia 9007362
chore: add a test for fhe sum
kcelia 8fab929
chore: update
kcelia ba26a5c
chore: update
kcelia 05256b2
chore: update
kcelia 03d498b
chore: remove useless prints
kcelia cf879d3
chore: update get_n_bits_dict_trees
kcelia ff1c6b1
chore: update
kcelia d4ca140
chore: update comment
kcelia f96333b
chore: update simulated p_error test
kcelia cc4781f
chore: update coverage
kcelia a652001
chore: update tests
kcelia 9839ce9
chore: update assert
kcelia 7cb13e0
chore: update comment
kcelia 7d93575
chore: update comment
kcelia 70adfd5
chore: test dump in both cases (sum_fhe enabled and disabled)
kcelia 783e7af
chore: remove env var
kcelia 39b2972
chore: restore knn notebook
kcelia 07b2f2a
chore: restore exp notebotebook
kcelia 7fddece
chore: update v1
kcelia 14d9dc0
chore: update v2
kcelia 3248216
chore: update v3
kcelia ab45587
chore: update
kcelia 0ad0f6d
chore: update comments
kcelia 9b58948
chore: update
kcelia 25bf839
chore: fix test dump
kcelia 5be7255
chore: update comments
kcelia ee696ec
chore: remove comment
kcelia 92e3fb9
chore: rebase
kcelia 4e2fcda
chore: update
kcelia b17cfd8
chore: merge with public main
kcelia File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure about the type of this, should it be a bool?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't take care of the typing in this PR (it's still in draft) and as I explained it's on hold.
auto_truncate
is theconcrete.fhe.auto_truncate
object and not a bool, it can be None, if the feature is disabled.In our test, we check that the feature is stable, i.e. we get the same result with and without truncate.
(in case the concrete team makes an update that changes the behavior of truncate).