From f885564578827abc7449aca06cf2ee8bb64a0131 Mon Sep 17 00:00:00 2001 From: ajaybati <34589524+ajaybati@users.noreply.github.com> Date: Mon, 10 Apr 2023 01:37:08 -0400 Subject: [PATCH 1/4] update ci.yml --- .github/workflows/CI.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 6f61b4e..8e3aba7 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -69,6 +69,6 @@ jobs: - name: Running Test Cases run: | - mkdir fLibrary/objFiles/ + mkdir -p fLibrary/objFiles/ cd test/ ./run.sh From 13dc70ae640b00c20b12dc65c72df3a24788113c Mon Sep 17 00:00:00 2001 From: ajaybati <34589524+ajaybati@users.noreply.github.com> Date: Mon, 10 Apr 2023 11:23:05 -0400 Subject: [PATCH 2/4] update readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 376c7c9..9107271 100644 --- a/README.md +++ b/README.md @@ -115,7 +115,7 @@ torch.onnx.export(model, # model being run 3. **Preprocess the model** - `fLibrary/` holds the library files that recreate the model and run inference on it. It contains a `Makefile` that first pre-processes the model. First, run `make preprocess args="path/to/model/structure path/to/weights/file"`. From the example above, the command would be `make preprocess args=lstm_gemm.onnx lstm_gemm_weights.onnx`. + `fLibrary/` holds the library files that recreate the model and run inference on it. Run `python3 modelParserONNX.py -f path/to/model/structure -w path/to/weights/file` to reconstruct the model. 4. **Compiling the library** From b453827f39226fc87ceb91e48c27000f58200cbe Mon Sep 17 00:00:00 2001 From: ajaybati <34589524+ajaybati@users.noreply.github.com> Date: Thu, 13 Apr 2023 16:59:38 -0400 Subject: [PATCH 3/4] fixed basic example --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9107271..f670318 100644 --- a/README.md +++ b/README.md @@ -57,7 +57,7 @@ python3 ../goldenFiles/gemm_small/gemm_small.py ``` ``` bash #read and interpret the correspoding output files from last step -python3 modelParserONNX.py -w ../goldenFiles/gemm_samll/gemm_small.onnx -f ../goldenFiles/gemm_samll/gemm_small_weights.onnx +python3 modelParserONNX.py -w ../goldenFiles/gemm_samll/gemm_small.onnx -f ../goldenFiles/gemm_small/gemm_small_weights.onnx ``` ``` bash #compile the library @@ -71,7 +71,7 @@ gfortran -o flibrary libcorelib.a capiTester.o ``` ``` bash #check whether python output from PyTorch model = roseNNa's output -python3 ../test/testChecker.py +python3 ../test/testChecker.py gemm_small ``` ## Compiling roseNNa From bc8560aee69ef1fb37844b34bda3f9f07a944a19 Mon Sep 17 00:00:00 2001 From: ajaybati <34589524+ajaybati@users.noreply.github.com> Date: Thu, 13 Apr 2023 17:01:23 -0400 Subject: [PATCH 4/4] fixing basic example --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f670318..5d1bae8 100644 --- a/README.md +++ b/README.md @@ -57,7 +57,7 @@ python3 ../goldenFiles/gemm_small/gemm_small.py ``` ``` bash #read and interpret the correspoding output files from last step -python3 modelParserONNX.py -w ../goldenFiles/gemm_samll/gemm_small.onnx -f ../goldenFiles/gemm_small/gemm_small_weights.onnx +python3 modelParserONNX.py -w ../goldenFiles/gemm_small/gemm_small.onnx -f ../goldenFiles/gemm_small/gemm_small_weights.onnx ``` ``` bash #compile the library