diff --git a/notebooks/end2end_example/tfc_end2end_verification.ipynb b/notebooks/end2end_example/tfc_end2end_verification.ipynb index a0c698681bac6ed94f1667f6fe7b14b4dc64b5ea..6eab7220f20fc78b17cfb0745e69e60ead16b3a0 100644 --- a/notebooks/end2end_example/tfc_end2end_verification.ipynb +++ b/notebooks/end2end_example/tfc_end2end_verification.ipynb @@ -28,7 +28,7 @@ }, { "cell_type": "code", - "execution_count": 2, + "execution_count": 1, "metadata": {}, "outputs": [], "source": [ @@ -51,12 +51,12 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "To verify the simulations a \"golden\" output is calculated as a reference. This is calculated directly from the Brevitas model using torch." + "To verify the simulations a \"golden\" output is calculated as a reference. This is calculated directly from the Brevitas model using PyTorch, by running some example data from the MNIST dataset through the trained model." ] }, { "cell_type": "code", - "execution_count": 22, + "execution_count": 2, "metadata": {}, "outputs": [ { @@ -67,7 +67,7 @@ " dtype=float32)" ] }, - "execution_count": 22, + "execution_count": 2, "metadata": {}, "output_type": "execute_result" } @@ -100,7 +100,7 @@ }, { "cell_type": "code", - "execution_count": 23, + "execution_count": 3, "metadata": {}, "outputs": [ { @@ -152,7 +152,7 @@ }, { "cell_type": "code", - "execution_count": 27, + "execution_count": 4, "metadata": {}, "outputs": [], "source": [ @@ -165,7 +165,7 @@ }, { "cell_type": "code", - "execution_count": 57, + "execution_count": 5, "metadata": {}, "outputs": [ { @@ -207,7 +207,7 @@ }, { "cell_type": "code", - "execution_count": 29, + "execution_count": 6, "metadata": {}, "outputs": [], "source": [ @@ -225,7 +225,7 @@ }, { "cell_type": "code", - "execution_count": 30, + "execution_count": 7, "metadata": {}, "outputs": [], "source": [ @@ -245,7 +245,7 @@ }, { "cell_type": "code", - "execution_count": 33, + "execution_count": 8, "metadata": {}, "outputs": [ { @@ -269,10 +269,10 @@ " " ], "text/plain": [ - "<IPython.lib.display.IFrame at 0x7fa3496350f0>" + "<IPython.lib.display.IFrame at 0x7fb461dd6710>" ] }, - "execution_count": 33, + "execution_count": 8, "metadata": {}, "output_type": "execute_result" } @@ -295,7 +295,7 @@ }, { "cell_type": "code", - "execution_count": 34, + "execution_count": 9, "metadata": {}, "outputs": [ { @@ -331,7 +331,7 @@ }, { "cell_type": "code", - "execution_count": 35, + "execution_count": 10, "metadata": {}, "outputs": [], "source": [ @@ -351,14 +351,14 @@ }, { "cell_type": "code", - "execution_count": 58, + "execution_count": 11, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ - "Results are the same\n" + "Results are the same!\n" ] } ], @@ -403,7 +403,7 @@ }, { "cell_type": "code", - "execution_count": 60, + "execution_count": 12, "metadata": {}, "outputs": [], "source": [ @@ -421,7 +421,7 @@ }, { "cell_type": "code", - "execution_count": 61, + "execution_count": 13, "metadata": {}, "outputs": [], "source": [ @@ -443,7 +443,7 @@ }, { "cell_type": "code", - "execution_count": 62, + "execution_count": 14, "metadata": {}, "outputs": [ { @@ -475,7 +475,7 @@ }, { "cell_type": "code", - "execution_count": 63, + "execution_count": 15, "metadata": {}, "outputs": [], "source": [ @@ -486,7 +486,7 @@ }, { "cell_type": "code", - "execution_count": 64, + "execution_count": 16, "metadata": {}, "outputs": [], "source": [ @@ -499,7 +499,7 @@ }, { "cell_type": "code", - "execution_count": 66, + "execution_count": 17, "metadata": {}, "outputs": [ { @@ -519,6 +519,13 @@ "else:\n", " print(\"The results are not the same!\")" ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [] } ], "metadata": { diff --git a/notebooks/end2end_example/verification.png b/notebooks/end2end_example/verification.png new file mode 100755 index 0000000000000000000000000000000000000000..71645fef72496258544641bb09e7b529656b8812 Binary files /dev/null and b/notebooks/end2end_example/verification.png differ