aboutsummaryrefslogtreecommitdiff
path: root/docs/proof.md
diff options
context:
space:
mode:
authorericmarin <maarin.eric@gmail.com>2026-04-13 19:42:39 +0200
committerericmarin <maarin.eric@gmail.com>2026-04-13 21:38:16 +0200
commitfcbbc960f43137aa170b78ba0be2d89aec3bc766 (patch)
tree15e0249bf429888d9b64f19eb0c6e2d9af0901e4 /docs/proof.md
parent8f4f24523235965cfa2041ed00cc40fc0b4bd367 (diff)
downloadvein-fcbbc960f43137aa170b78ba0be2d89aec3bc766.tar.gz
vein-fcbbc960f43137aa170b78ba0be2d89aec3bc766.zip
New ONNX ops and testsHEADmaster
New ops: Slice, Squeeze, Unsqueeze New tests based on papers: - Wide-to-Deep, Deep-to-Wide Transformation - Pruining of stably inactive (always negative) and active (always positive) ReLUs
Diffstat (limited to '')
-rw-r--r--docs/proof.md15
1 files changed, 9 insertions, 6 deletions
diff --git a/docs/proof.md b/docs/proof.md
index 07717f9..99c88aa 100644
--- a/docs/proof.md
+++ b/docs/proof.md
@@ -37,17 +37,13 @@ By definition this interaction is equal to:
By grouping the operations we get:
![Y = alpha * A * B + beta * C](https://latex.codecogs.com/svg.image?Y=\alpha\cdot&space;A\cdot&space;B&plus;\beta\cdot&space;C&space;)
-### Flatten
-Just identity mapping because the wires are always Flatten.
+### Identiry / Flatten / Reshape / Squeeze / Unsqueeze
+Just identity mapping because wires represent a single element and they are not structured as Tensors.
![out_i ~ in_i](https://latex.codecogs.com/svg.image?out_i\sim&space;in_i)
### MatMul
Equal to Gemm with ![alpha=1](https://latex.codecogs.com/svg.image?\inline&space;\alpha=1), ![beta=0](https://latex.codecogs.com/svg.image?\inline&space;\beta=0) and ![C=0](https://latex.codecogs.com/svg.image?\inline&space;&space;C=0).
-### Reshape
-Just identity mapping because the wires always Flatten.
-![out_i ~ in_i](https://latex.codecogs.com/svg.image?out_i\sim&space;in_i)
-
### Add
ONNX Add node is defined as:
![C = A + B](https://latex.codecogs.com/svg.image?&space;C=A&plus;B)
@@ -76,6 +72,13 @@ By definition this interaction is equal to:
By grouping the operations we get:
![C = A - B](https://latex.codecogs.com/svg.image?C=A-B)
+### Slice
+ONNX Slice is defined as:
+![out_j = in_{start + (j * step)}](https://latex.codecogs.com/svg.image?&space;out_j=in_{start&plus;(j*step)})
+
+The translations creates a wiring analog to the above definition:
+![out_j ~ in_{start + (j * step)}](https://latex.codecogs.com/svg.image?&space;out_j\sim&space;in_{start&plus;(j*step)})
+
## Soundness of Interaction Rules
### Materialize
The Materialize agent transforms a Linear agent into a tree of explicit mathematical operations