feat(frontend-python): random inputset generator

This commit is contained in:
Umut
2024-03-06 15:33:27 +03:00
parent 32199292bb
commit aad659f160
6 changed files with 163 additions and 1 deletions

View File

@@ -67,6 +67,11 @@ inputset = [(2, 3), (0, 0), (1, 6), (7, 7), (7, 1)]
All inputs in the inputset will be evaluated in the graph, which takes time. If you're experiencing long compilation times, consider providing a smaller inputset.
{% endhint %}
{% hint style="warning" %}
There is a utility function called `fhe.inputset(...)` for easily creating random inputsets, see its
[documentation](../tutorial/extensions.md#fheinputset) to learn more!
{% endhint %}
## Compiling the function
You can use the `compile` method of a `Compiler` class with an inputset to perform the compilation and get the resulting circuit back: