Commit Graph

550 Commits

Author SHA1 Message Date
Arthur Meyre
ff03bc2220 feat(optimization): support more fusing topologies
- corrected docstring that was mistaken on what was returned
- updated pyproject.toml to ignore warnings that happened naturally in
networkx and that was blocking proper test execution (no way around that
this is code from networkx that triggered the warning)
- add a test case for the newly supported fusing topology

closes #499
2021-11-18 09:08:50 +01:00
Arthur Meyre
bc145e21e1 feat: allow tracing __eq__ while keeping hashing when not tracing
closes #936
2021-11-18 09:08:43 +01:00
jfrery
c978107124 feat: remove transpose from layers 2021-11-17 14:54:16 +01:00
Arthur Meyre
b9c52947f6 refactor(optimization): refactor code to prepare new topologies fusing
refs #499
2021-11-17 14:10:33 +01:00
Benoit Chevallier-Mames
a712b0573c feat: add support for comparators when one input is a constant
closes #932
refs #751
2021-11-17 13:50:18 +01:00
Umut
c733daa78c feat(mlir): implement MLIR conversion of MatMul 2021-11-17 15:01:29 +03:00
Benoit Chevallier-Mames
05cacc8744 feat(tracing): let's trace k<<x and k>>x
closes #915
2021-11-17 12:50:59 +01:00
Umut
1d691f232b feat(mlir): implement MLIR conversion of multi lookup tables 2021-11-17 14:27:47 +03:00
Benoit Chevallier-Mames
78f82fb9a1 chore: remove useless variables that make pcc didn't see 2021-11-17 11:01:57 +01:00
jfrery
fac0479465 feat: separate matmul from the floating points and zero points values 2021-11-17 10:11:47 +01:00
Benoit Chevallier-Mames
5448669e83 chore: split test_tracing
closes #913
2021-11-17 10:10:05 +01:00
Arthur Meyre
55a39d4c26 test: run single lut conformance on tensors
closes #574
refs #558
refs #665
2021-11-17 09:11:46 +01:00
Benoit Chevallier-Mames
482d2d4aa0 chore: reduce a bit the strength of duplicate-code in pylint 2021-11-16 18:36:14 +01:00
Benoit Chevallier-Mames
a2a61a079f feat(tracing): add support for ndarray functions
ndarray.flatten
ndarray.__abs__
ndarray.__neg__, __pos__ and __invert__
ndarray.__rshift__ and __lshift_

refs #751
refs #218
2021-11-16 18:36:14 +01:00
Arthur Meyre
baa8a97e98 chore: remove package watcher workflow for now
- causes some errors in github actions
2021-11-16 12:31:21 +01:00
Umut
db098fd3a3 refactor(debugging): improve error messages of generic functions with floating point inputs 2021-11-16 13:18:13 +03:00
Arthur Meyre
76272373a4 chore: fix compiler tag in CI env docker push 2021-11-16 11:05:57 +01:00
Arthur Meyre
1b3f9aa048 chore: use pip package for docker
- comment out package-watcher as it's not compatible with the new docker
waiting on the compiler proper release workflow to update this
- update setup_env target to be docker and bare env friendly (workaround)
- update torch_requirements.txt

refs #809
2021-11-16 10:41:53 +01:00
Umut
46a018fd21 refactor: use a consistent short name for operation graph 2021-11-16 12:10:48 +03:00
Benoit Chevallier-Mames
5d31aa4d2c chore: factorize some data_gen. 2021-11-15 16:46:46 +01:00
Benoit Chevallier-Mames
50c1ceb6db test(execution): add tests with negative results
for now, results are correct mod 128, but wrong without this modulo reduction. Will be later fixed
by the compiler.

closes #844
refs #845
2021-11-15 16:46:46 +01:00
Umut
239f66eb46 refactor(mlir): re-write mlir conversion 2021-11-15 17:21:51 +03:00
Umut
6fec590e65 refactor(debugging): re-write graph formatting 2021-11-15 16:33:15 +03:00
Umut
b449ddc360 refactor(debugging): improve error message of unfused astype 2021-11-15 12:50:46 +03:00
Umut
d244bcace9 test(scripts): create measurement script tests 2021-11-15 12:45:55 +03:00
Benoit Chevallier-Mames
e7e7a02425 test(execution): add tests with negative values
closes #844
2021-11-15 10:15:49 +01:00
Benoit Chevallier-Mames
1394dd6db5 chore: clarify these tests a bit 2021-11-15 10:10:58 +01:00
Arthur Meyre
93820e1588 feat: add support for __floordiv__
closes #871
closes #872
2021-11-11 09:42:02 +01:00
jfrery
c5952cd09f feat: add quantization utilities 2021-11-10 18:25:31 +01:00
IceTDrinker
5af498cb60 chore(deps): bump compiler to 3bf493e83c 2021-11-10 18:21:27 +01:00
IceTDrinker
49dd0f57c1 chore(deps): bump compiler to a888a6b329
- disable buildx as it seems to be failing a lot
2021-11-10 17:48:10 +01:00
Benoit Chevallier-Mames
1aad4d23d1 chore: be more verbose in this assert
closes #729
2021-11-10 17:31:08 +01:00
Arthur Meyre
955470fb89 feat: add support for __truediv__
- cannot use the standard binary op workflow as we don't have an op for div

closes #866
closes #867
2021-11-10 15:07:59 +01:00
IceTDrinker
e316c1b3ba chore(deps): bump compiler to 47cb4b0e70 2021-11-10 14:30:22 +01:00
Arthur Meyre
8a91760b12 chore: check latest base image is strictly newer
- otherwise we try to open PRs for no good reason (thankfully no diffs
means the PR is not opened)
2021-11-10 11:03:38 +01:00
Arthur Meyre
1dd893e208 chore: select latest env image for timestamp check
- otherwise we can get preflight images
2021-11-10 09:56:58 +01:00
IceTDrinker
26688c9a2e chore(deps): bump compiler to 97389a3b06
- fix MLIR operator module change
2021-11-10 09:24:26 +01:00
Umut
ee202a03b3 feat(mlir): implement mlir conversion of basic tensor operations 2021-11-10 10:18:36 +03:00
Arthur Meyre
e20ad467e3 chore: allow to manually run the package watcher to update the env docker 2021-11-09 18:03:18 +01:00
Arthur Meyre
565756810d feat: add neg support to BaseTracer
closes #853
2021-11-09 18:02:59 +01:00
Arthur Meyre
4237b9df32 chore: fix package watcher time check logic
- compare base images timestamps to have more reliable triggers

closes #856
2021-11-09 17:46:22 +01:00
Arthur Meyre
77a379060a chore: update package watcher to open PR instead of triggering rebuild
closes #784
2021-11-09 15:38:57 +01:00
jfrery
fac7c9c954 feat: conversion from torch.nn.Module to numpy. 2021-11-09 11:02:48 +01:00
Umut
548b755409 fix(fhe_circuit): update type annotations for run method 2021-11-08 16:50:24 +01:00
Umut
f417246ea3 refactor(debugging): rename get_printable_graph to format_operation_graph 2021-11-08 13:20:18 +03:00
dependabot[bot]
6ea46d2cbe chore(deps): bump actions/checkout from 2.3.5 to 2.4.0
Bumps [actions/checkout](https://github.com/actions/checkout) from 2.3.5 to 2.4.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](1e204e9a92...ec3a7ce113)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-08 09:56:22 +01:00
Umut
d4909a729f feat(benchmarks): add constant indexing benchmarks 2021-11-05 18:26:17 +03:00
Arthur Meyre
b716ddcf76 feat: clear error message when a constant shape is preventing float fusing
- happens when a constant is bigger than the variable input of the
subgraph, would require special handling, hard to write and requires a
concatenation/stacking operator see #587

closes #645
2021-11-04 16:55:14 +01:00
Arthur Meyre
fae89bd452 refactor: add python generic helpers
- move catch and update_and_return_dict there
2021-11-04 16:55:14 +01:00
Umut
39ad5bd894 feat(benchmarks): add dynamic indexing benchmarks 2021-11-04 17:49:24 +03:00