Benoit Chevallier-Mames
e8114cc470
feat: add management of boolean binary operators with a const scalar
...
refs #126
refs #529
2021-10-08 15:31:04 +02:00
Umut
6affa54473
feat(configuration): add option to treat warnings as errors
2021-10-07 18:40:33 +03:00
Arthur Meyre
e451afc283
chore: add semver and semantic-release dev dependencies
...
- add __init__.py in tests to fix new pylint error
2021-10-07 16:49:00 +02:00
Benoit Chevallier-Mames
2da3895f1a
feat: add more bivariate operations
...
which are supported if one of the operands is a constant
refs #126
2021-10-07 16:14:07 +02:00
Umut
5fce0d2920
feat(compilation): implement MLIR conversion of constant arrays
2021-10-07 16:17:48 +03:00
Arthur Meyre
4a77d0515a
feat(tracing): add test for extra args passed to ufuncs
...
- add comment to explain why sanitizing all args is safe for ufuncs
2021-10-07 12:01:44 +02:00
Benoit Chevallier-Mames
56e0ed4a11
feat: manage binary op where one input is constant
...
feat #126
2021-10-06 17:53:52 +02:00
Umut
83ea485fe1
feat(tracing): enable implicit broadcasting for binary operations
2021-10-06 10:33:12 +03:00
Umut
ceb23f93d5
feat(tracing): implement and test tracing of basic operations for tensors
2021-10-05 15:25:53 +03:00
Umut
003bad581a
feat(fhe_circuit): create FHECircuit class to combine operation graph and compiler engine
2021-10-04 12:23:37 +03:00
Arthur Meyre
a9d44f4758
feat(float_fusing): restrict to scalars before supporting tensors
2021-09-30 10:57:00 +02:00
Benoit Chevallier-Mames
42d5b66b69
fix: better test.
2021-09-30 10:47:27 +02:00
Benoit Chevallier-Mames
3d6baf4101
fix: fix the type
2021-09-30 10:47:27 +02:00
Benoit Chevallier-Mames
7ea39fb77d
fix: clear comments
2021-09-30 10:47:27 +02:00
Benoit Chevallier-Mames
ab7cf24285
fix: pylint.
2021-09-30 10:47:27 +02:00
Benoit Chevallier-Mames
2351730cee
feat: adding management of numpy.absolute
...
refs #126
2021-09-30 10:47:27 +02:00
Benoit Chevallier-Mames
0a758ed672
test: change a bit the way we test
...
to prepare modifications for more ufunc
refs #126
2021-09-30 10:47:27 +02:00
Umut
c47dac833b
refactor: replace scalars with () shaped tensors, disable python list support in inputset
2021-09-29 17:55:58 +03:00
Umut
bc80f0de10
refactor: fix new pylint warnings
2021-09-29 11:51:08 +03:00
Umut
36d732b0ae
refactor: rename 'data_type' field of 'BaseValue' to 'dtype'
2021-09-29 11:51:08 +03:00
Umut
77690fed84
fix: generalize error message for unsupported functions
2021-09-29 11:51:08 +03:00
Umut
0061e01d62
feat: implement checking coherence between inputset and parameters
2021-09-24 13:49:54 +02:00
Arthur Meyre
eaf8cfb933
tests: add function for ArbitraryFunction arbitrary_func equivalence
...
- this is not perfect but pretty close to the best we can do
2021-09-23 16:57:12 +02:00
Umut
e4a06116ec
fix: inputset of test_mlir_converter for dot operation
2021-09-23 16:31:52 +03:00
Arthur Meyre
86052fa43d
chore(tools): update command line for isort to follow the 100 line length
2021-09-23 14:00:07 +02:00
Umut
441c4f9e7d
feat: check inputset size
2021-09-20 17:05:22 +03:00
Benoit Chevallier-Mames
0a6ebf3b19
workaround: make compilation work if table output is small
...
this workaround will be removed once it is managed by the compiler.
closes #279
refs #412
2021-09-17 18:47:43 +02:00
Benoit Chevallier-Mames
6a83b01e92
fix: check widths are supported by concrete-lib
...
and if not, explain to the user
refs #139
2021-09-17 12:32:37 +02:00
Benoit Chevallier-Mames
15aeb35529
fix: dot tests were using a single-element inputset
...
closes #372
2021-09-17 09:37:00 +02:00
Arthur Meyre
381c81b76c
refacto: remove iter usage for passing a dataset
...
- it is still supported but not required and more confusing
2021-09-15 20:07:21 +02:00
youben11
bd8dca11d5
fix(TLU): extend TLU to 2 ** bit_width elements
2021-09-14 17:57:52 +01:00
Benoit Chevallier-Mames
8522e58280
refacto: rename 'dataset' into a clear 'inputset'
...
closes #340
2021-09-14 17:31:55 +02:00
Benoit Chevallier-Mames
e78086eefa
feat: let's have a customizable assert
...
closes #245
2021-09-10 17:52:09 +02:00
youben11
845558d3a5
test: dot compilation and execution
2021-09-10 13:45:22 +01:00
Arthur Meyre
6fe809aece
dev: add code to have the proper data type when getting an AF table
...
- update BaseDataType to store the underlying type constructor e.g. int
- add helper functions to get the type constructor for constant data
- update operator graph to fill the type constructor during bounds update
- add loguru as logger
- use type constructor in ArbitraryFunction.get_table, log an info if the
type_constructor of the input was None and default to int
2021-09-09 11:16:49 +02:00
Arthur Meyre
959328e0f5
chore: rename hdk to concrete first pass
2021-09-06 18:43:49 +02:00
Benoit Chevallier-Mames
150d33ba48
feat: make get_printable_graph give correct info for np.dot
...
closes #204
2021-09-06 11:57:45 +02:00
youben11
0fde0ae836
fix(tests): wasn't expecting bits to be update to max
2021-09-03 08:57:07 +01:00
youben11
31c1787af2
feat(mlir): conversion of dot node into MLIR
2021-09-03 08:57:07 +01:00
youben11
f686ca535a
feat(mlir): convert TensorValue inputs to MLIR
...
factorized the input type conversion of scalar values
2021-09-03 08:57:07 +01:00
Benoit Chevallier-Mames
cfe48cca15
test: add correctness tests for all supported ufunc's
...
closes #263
2021-09-02 16:00:33 +02:00
Arthur Meyre
9ffe9b667a
refacto: fix missed renaming after bad merge
2021-09-02 14:27:19 +02:00
Arthur Meyre
bf2585ba0a
refacto: rename hnumpy to numpy as requested for the package imports
2021-09-02 12:20:01 +02:00
Benoit Chevallier-Mames
e9c5ce27bb
feat: factorize the ufunc management and add lot of ufunc's
...
refs #126
2021-09-02 10:46:31 +02:00
Umut
1e8debfb57
refactor: rename ClearValue/EncryptedValue to ClearScalar/EncryptedScalar
2021-09-01 15:33:19 +03:00
Benoit Chevallier-Mames
2badcecd0d
feat: append \n instead of prepending it in get_printable_graph
...
closes #222
2021-09-01 10:23:14 +02:00
Umut
1fa049d914
feat: dump compilation artifacts automatically on compilation failures
2021-08-31 18:40:40 +03:00
Umut
02fbbfeaf7
test(drawing): crate test for saving the drawing
2021-08-31 18:40:40 +03:00
Benoit Chevallier-Mames
0d84f8c5f5
feat: adding exp functions in the managed operators
...
refs #126
closes #260
2021-08-31 17:24:30 +02:00
Benoit Chevallier-Mames
e90df9c0b7
feat: adding arcsin, arccos, arctan in the managed operators
...
refs #126
closes #257
2021-08-31 16:39:17 +02:00