From 03b7eccd5c238832191c57c9bcb4bc3a4e69f454 Mon Sep 17 00:00:00 2001 From: Sai Hari Chandana Kalluri Date: Sun, 22 Sep 2019 12:55:00 -0700 Subject: [PATCH] Update default notebooks path from /home/xilinx/ to /usr/share --- notebooks/LFC-QNN_MNIST.ipynb | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/notebooks/LFC-QNN_MNIST.ipynb b/notebooks/LFC-QNN_MNIST.ipynb index fa2b972..752c154 100755 --- a/notebooks/LFC-QNN_MNIST.ipynb +++ b/notebooks/LFC-QNN_MNIST.ipynb @@ -77,7 +77,7 @@ "\n", "#read labels\n", "labels = []\n", - "with open(\"/home/xilinx/jupyter_notebooks/bnn/t10k-labels-idx1-ubyte\",\"rb\") as lbl_file:\n", + "with open(\"/usr/share/notebooks/bnn_examples/t10k-labels-idx1-ubyte\",\"rb\") as lbl_file:\n", " #read magic number and number of labels (MSB first) -> MNIST header\n", " magicNum = int.from_bytes(lbl_file.read(4), byteorder=\"big\")\n", " countLbl = int.from_bytes(lbl_file.read(4), byteorder=\"big\")\n", @@ -143,7 +143,7 @@ } ], "source": [ - "result_W1A1 = lfcW1A1_classifier.classify_mnists(\"/home/xilinx/jupyter_notebooks/bnn/t10k-images-idx3-ubyte\")" + "result_W1A1 = lfcW1A1_classifier.classify_mnists(\"/usr/share/notebooks/bnn_examples/t10k-images-idx3-ubyte\")" ] }, { @@ -178,7 +178,7 @@ } ], "source": [ - "result_W1A2 = lfcW1A2_classifier.classify_mnists(\"/home/xilinx/jupyter_notebooks/bnn/t10k-images-idx3-ubyte\")" + "result_W1A2 = lfcW1A2_classifier.classify_mnists(\"/usr/share/notebooks/bnn_examples/t10k-images-idx3-ubyte\")" ] }, { @@ -196,8 +196,8 @@ "metadata": {}, "outputs": [], "source": [ - "with open(\"/home/xilinx/jupyter_notebooks/bnn/10_mnist_pictures\", \"wb\") as out_file:\n", - " with open(\"/home/xilinx/jupyter_notebooks/bnn/t10k-images-idx3-ubyte\",\"rb\") as img_file:\n", + "with open(\"/usr/share/notebooks/bnn_examples/10_mnist_pictures\", \"wb\") as out_file:\n", + " with open(\"/usr/share/notebooks/bnn_examples/t10k-images-idx3-ubyte\",\"rb\") as img_file:\n", " #copy magic number\n", " out_file.write(img_file.read(4))\n", " #set number of images\n", @@ -241,10 +241,10 @@ "source": [ "print(\"SW Inference with W1A1:\")\n", "sw_lfcW1A1_classifier = bnn.LfcClassifier(bnn.NETWORK_LFCW1A1,\"mnist\",bnn.RUNTIME_SW)\n", - "sw_resultW1A1 = sw_lfcW1A1_classifier.classify_mnists(\"/home/xilinx/jupyter_notebooks/bnn/10_mnist_pictures\")\n", + "sw_resultW1A1 = sw_lfcW1A1_classifier.classify_mnists(\"/usr/share/notebooks/bnn_examples/10_mnist_pictures\")\n", "print(\"\\nSW Inference with W1A2:\")\n", "sw_lfcW1A2_classifier = bnn.LfcClassifier(bnn.NETWORK_LFCW1A2,\"mnist\",bnn.RUNTIME_SW)\n", - "sw_resultW1A2 = sw_lfcW1A2_classifier.classify_mnists(\"/home/xilinx/jupyter_notebooks/bnn/10_mnist_pictures\")" + "sw_resultW1A2 = sw_lfcW1A2_classifier.classify_mnists(\"/usr/share/notebooks/bnn_examples/10_mnist_pictures\")" ] }, { -- 2.7.4