-
Notifications
You must be signed in to change notification settings - Fork 158
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(frontend): wire tracing #946
Conversation
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.
Maybe you could update the doc as well, in the same PR? Doing so, it would help me understand how the new feature works. Thanks!
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.
Some more comments.
In general:
- please do not have me as a single reviewer. I added @umut-sahin
- I would say we miss a lot of comments
- I would prefer to have the doc here as well, to understand how it works, and be able to say what I think
- ideally, the tests would be with a more-complex-control-flow function. Else, I am afraid we don't really check the auto wiring.
frontends/concrete-python/concrete/fhe/compilation/module_compiler.py
Outdated
Show resolved
Hide resolved
frontends/concrete-python/concrete/fhe/compilation/module_compiler.py
Outdated
Show resolved
Hide resolved
frontends/concrete-python/concrete/fhe/compilation/module_compiler.py
Outdated
Show resolved
Hide resolved
frontends/concrete-python/concrete/fhe/compilation/module_compiler.py
Outdated
Show resolved
Hide resolved
frontends/concrete-python/concrete/fhe/compilation/module_compiler.py
Outdated
Show resolved
Hide resolved
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.
The API is usable, but I think we talked about some kind of pipeline
API, in which the wires would be detected + a single inputset would be given for the whole pipeline. Did we give up on that idea, or is this one just a temporary solution until then?
frontends/concrete-python/concrete/fhe/compilation/module_compiler.py
Outdated
Show resolved
Hide resolved
frontends/concrete-python/concrete/fhe/compilation/module_compiler.py
Outdated
Show resolved
Hide resolved
frontends/concrete-python/concrete/fhe/compilation/module_compiler.py
Outdated
Show resolved
Hide resolved
I schedule a meeting when @aPere3, with @umut-sahin come back to discuss of that and the API. |
c1fd921
to
3915d54
Compare
3915d54
to
d23c74b
Compare
2332bfd
to
fa935bd
Compare
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.
Ok look good to me, I'm just wondering in term of API if we could declare the pipeline as a composition policy directly?
Something like
@fhe.module()
class Module:
...
composition = fhe.Pipeline(inputset, lambda sample: Module.c(Module.b(Module.a(s))))
|
89170d1
to
78ec553
Compare
Ok that's what I expected but as I'm not an python expert and as we can do weird things in python I'm wondering if it was possible :). 👍 So I think it could be great to not to have to set an empty fhe.Wired composition rule just for readability. But that can be done in a next PR. wdyt? |
@yuxizama the PR is ready for doc review |
Yes, I was not sure about the what you guys would prefer so I left it this way, but I'll change it to automatically set the proper policy. No worries, I'll do it there. It's a small change, and CI is still not green anyway. |
78ec553
to
2875122
Compare
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.
It looks good to me, I'm just curious about how it'll work in practice.
What do you mean ? |
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.
Thanks for the doc @aPere3 . Just asking a change for SHA1, for also use modules please, thanks
frontends/concrete-python/examples/levenshtein_distance/levenshtein_distance.py
Show resolved
Hide resolved
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.
Some suggestions, thank you!
8993981
to
3cb9ecd
Compare
3cb9ecd
to
e6f2a73
Compare
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.
Thanks @aPere3
No description provided.