Skip to content
Snippets Groups Projects
Commit 611f946d authored by Hashim Sharif's avatar Hashim Sharif
Browse files

returning working directory from Keras frontend

parent f57808b5
No related branches found
No related tags found
No related merge requests found
...@@ -827,7 +827,8 @@ class TensorRtTranslator: ...@@ -827,7 +827,8 @@ class TensorRtTranslator:
self.add_header() self.add_header()
dir_path = "std::string dir_prefix = std::string(\"" + weights_dir + "\"); \n" #dir_path = "std::string dir_prefix = std::string(\"" + weights_dir + "\"); \n"
dir_path = "std::string dir_prefix = std::string(\"../\"); \n"
self.weight_str += dir_path self.weight_str += dir_path
if test_data is not None: if test_data is not None:
...@@ -966,3 +967,5 @@ def translate_to_approxhpvm(model, weights_dir, test_data=None, test_labels=None ...@@ -966,3 +967,5 @@ def translate_to_approxhpvm(model, weights_dir, test_data=None, test_labels=None
hpvmTranslator.translate(model, weights_dir, test_data) hpvmTranslator.translate(model, weights_dir, test_data)
return weights_dir
...@@ -60,8 +60,11 @@ class Benchmark: ...@@ -60,8 +60,11 @@ class Benchmark:
print("ERROR: Must load HPVM model to invoke frontend - use 'hpvm_reload'") print("ERROR: Must load HPVM model to invoke frontend - use 'hpvm_reload'")
sys.exit(1) sys.exit(1)
translate_to_approxhpvm(model, self.hpvm_dir, X_test, Y_test, self.num_classes) working_dir = translate_to_approxhpvm(model, self.hpvm_dir, X_test, Y_test, self.num_classes)
print ("*** working_dir = ", working_dir)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment