-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#file to create pytorch model and convert to ONNX | ||
python3 ../goldenFiles/gemm_small/gemm_small.py | ||
|
||
#read and interpret the correspoding output files from last step | ||
python3 modelParserONNX.py -w ../goldenFiles/gemm_small/gemm_small.onnx -f ../goldenFiles/gemm_small/gemm_small_weights.onnx | ||
|
||
#compile the library | ||
make library | ||
|
||
#compile "source files" (capiTester.f90), link to the library file created, and run | ||
gfortran -c ../examples/capiTester.f90 -IobjFiles/ | ||
gfortran -o flibrary libcorelib.a capiTester.o | ||
./flibrary | ||
|
||
#check whether python output from PyTorch model = roseNNa's output | ||
python3 ../test/testChecker.py gemm_small |