Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hpvm-release
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
llvm
hpvm-release
Commits
8068fd1f
Commit
8068fd1f
authored
4 years ago
by
Yifan Zhao
Browse files
Options
Downloads
Patches
Plain Diff
Pass arguments correctly for tensor codegen
parent
3f0cf543
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
hpvm/projects/onnx_frontend/main.py
+5
-5
5 additions, 5 deletions
hpvm/projects/onnx_frontend/main.py
with
5 additions
and
5 deletions
hpvm/projects/onnx_frontend/main.py
+
5
−
5
View file @
8068fd1f
...
@@ -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
:
hpvm
C
ode
G
en
=
HpvmCodeGen
(
dfg
,
output_dir
,
input_size
,
batch_size
,
prefix
)
hpvm
_c
ode
_g
en
=
HpvmCodeGen
(
dfg
,
output_dir
,
input_size
,
batch_size
,
prefix
)
hpvm
C
ode
G
en
.
compile
()
hpvm
_c
ode
_g
en
.
compile
()
else
:
else
:
T
ensor
C
ode
G
en
=
TensorCodeGen
(
dfg
,
output_dir
,
input_size
)
t
ensor
_c
ode
_g
en
=
TensorCodeGen
(
dfg
,
output_dir
,
input_size
,
batch_size
,
prefix
)
T
ensor
C
ode
G
en
.
compile
()
t
ensor
_c
ode
_g
en
.
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
(
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment