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

Adding usage

parent fd47cb04
No related branches found
No related tags found
No related merge requests found
...@@ -35,6 +35,7 @@ class Benchmark: ...@@ -35,6 +35,7 @@ class Benchmark:
def run(self, argv): def run(self, argv):
if len(argv) < 2: if len(argv) < 2:
print ("Usage: python ${benchmark.py} [hpvm_reload|keras_reload|train] [frontend]")
sys.exit(0) sys.exit(0)
model = self.buildModel() model = self.buildModel()
...@@ -56,7 +57,7 @@ class Benchmark: ...@@ -56,7 +57,7 @@ class Benchmark:
if len(argv) > 2 and argv[2] == "frontend": if len(argv) > 2 and argv[2] == "frontend":
if argv[1] == "keras_reload": if argv[1] == "keras_reload":
print("ERROR: Must load HPVM model to invoke frontend") 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) translate_to_approxhpvm(model, self.hpvm_dir, X_test, Y_test, self.num_classes)
......
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