Environment setup
Add path to libprotobuf.so
and libnvdla_compiler.so
in LD_LIBRARY_PATH
Compilation Command
Compilation script : miniera-hpvm/src/compile_benchmark.sh
Command:
python3 /home/hsharif3/Gitlab/hpvm_release_nvdla/hpvm/build/tools/hpvm/tools/hpvm-clang/main.py -t nvdla --conf-file data/tuner_confs.txt -DMODEL_PARAMS_DIR=${PATH_TO_MODELPARAMS} -fno-exceptions miniera-hpvm.cpp miniera-hpvm
Frontend/Source changes required
-
Weights must be FP16!
-
Weights for FC layers need to be tranposed
-
Modify paths to readTrainedWeights to pass constant file path -- use MODEL_PARAMS_STR as part of string