mirror of
https://github.com/zama-ai/concrete.git
synced 2026-04-17 03:00:54 -04:00
committed by
Benoit Chevallier
parent
5041e42978
commit
bcc146bd6e
@@ -54,7 +54,7 @@ Once the MLIR is prepared, the rest of the stack, which you can learn more about
|
||||
|
||||
Here is the visual representation of the pipeline:
|
||||
|
||||

|
||||

|
||||
|
||||
## Tracing
|
||||
|
||||
@@ -67,7 +67,7 @@ def f(x):
|
||||
|
||||
the goal of tracing is to create the following operation graph without needing any change from the user.
|
||||
|
||||

|
||||

|
||||
|
||||
(Note that the edge labels are for non-commutative operations. To give an example, a subtraction node represents `(predecessor with edge label 0) - (predecessor with edge label 1)`)
|
||||
|
||||
@@ -140,7 +140,7 @@ After the entire dataset is evaluated, we assign a data type to each node using
|
||||
|
||||
Here is an example, given this operation graph where `x` is encrypted:
|
||||
|
||||

|
||||

|
||||
|
||||
and this dataset:
|
||||
|
||||
@@ -218,7 +218,7 @@ x = EncryptedScalar(UnsignedInteger(2))
|
||||
|
||||
#### Corresponding Operation Graph
|
||||
|
||||

|
||||

|
||||
|
||||
### Topological Transforms
|
||||
|
||||
@@ -268,7 +268,7 @@ y = EncryptedScalar(UnsignedInteger(1))
|
||||
|
||||
#### Corresponding Operation Graph
|
||||
|
||||

|
||||

|
||||
|
||||
### Topological Transforms
|
||||
|
||||
@@ -24,15 +24,15 @@ Any computation where there is a single variable integer input and a single inte
|
||||
|
||||
The `quantized_sin` graph of operations:
|
||||
|
||||

|
||||

|
||||
|
||||
The float subgraph that was detected:
|
||||
|
||||

|
||||

|
||||
|
||||
The simplified graph of operations with the float subgraph condensed in an `ArbitraryFunction` node:
|
||||
|
||||

|
||||

|
||||
|
||||
## How is it done in concretefhe?
|
||||
|
||||
4
docs/dev/explanation/MLIR.md
Normal file
4
docs/dev/explanation/MLIR.md
Normal file
@@ -0,0 +1,4 @@
|
||||
# MLIR
|
||||
|
||||
to be done
|
||||
|
||||
@@ -95,7 +95,7 @@ git checkout $YOUR_BRANCH
|
||||
# rebase on top of main branch
|
||||
git rebase main
|
||||
|
||||
# push the latest version of the local branch to remote
|
||||
# push the latest version of the local branch to remote
|
||||
git push --force
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user