Skip to content
Snippets Groups Projects
Commit 8068fd1f authored by Yifan Zhao's avatar Yifan Zhao
Browse files

Pass arguments correctly for tensor codegen

parent 3f0cf543
No related branches found
No related tags found
No related merge requests found
...@@ -41,11 +41,11 @@ def compile( ...@@ -41,11 +41,11 @@ def compile(
model = check_version(model, opset) model = check_version(model, opset)
dfg = DFG(model.graph) dfg = DFG(model.graph)
if hpvmc: if hpvmc:
hpvmCodeGen = HpvmCodeGen(dfg, output_dir, input_size, batch_size, prefix) hpvm_code_gen = HpvmCodeGen(dfg, output_dir, input_size, batch_size, prefix)
hpvmCodeGen.compile() hpvm_code_gen.compile()
else: else:
TensorCodeGen = TensorCodeGen(dfg, output_dir, input_size) tensor_code_gen = TensorCodeGen(dfg, output_dir, input_size, batch_size, prefix)
TensorCodeGen.compile() tensor_code_gen.compile()
dfg.dump_weights(output_dir) dfg.dump_weights(output_dir)
...@@ -66,7 +66,7 @@ def parse_args(): ...@@ -66,7 +66,7 @@ def parse_args():
"-p", "-p",
"--prefix", "--prefix",
type=str, type=str,
help="Prefix in generated code; will be attached before name of weight/input files." help="Prefix in generated code; will be attached before name of weight/input files. "
"Defaults to output_dir.", "Defaults to output_dir.",
) )
parser.add_argument( parser.add_argument(
......
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