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
831efeff
Commit
831efeff
authored
3 years ago
by
Yifan Zhao
Browse files
Options
Downloads
Patches
Plain Diff
Fixed a bug in profile plotting and added test case for it
parent
3dfefcee
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
hpvm/projects/hpvm-profiler/hpvm_profiler/__init__.py
+2
-2
2 additions, 2 deletions
hpvm/projects/hpvm-profiler/hpvm_profiler/__init__.py
hpvm/test/dnn_benchmarks/pytorch/test_profiling/test_profiling.py
+2
-1
2 additions, 1 deletion
...t/dnn_benchmarks/pytorch/test_profiling/test_profiling.py
with
4 additions
and
3 deletions
hpvm/projects/hpvm-profiler/hpvm_profiler/__init__.py
+
2
−
2
View file @
831efeff
...
...
@@ -125,8 +125,8 @@ def plot_hpvm_configs(
qoses
,
speedups
=
qos_speedup
.
T
fig
,
ax
=
plt
.
subplots
(
**
fig_kwargs
)
ax
.
scatter
(
qoses
,
speedups
)
ax
.
xlabel
(
"
QoS Loss
"
)
ax
.
ylabel
(
"
Speedup (X)
"
)
ax
.
set_
xlabel
(
"
QoS Loss
"
)
ax
.
set_
ylabel
(
"
Speedup (X)
"
)
if
save_to
:
fig
.
savefig
(
save_to
,
dpi
=
300
)
return
fig
...
...
This diff is collapsed.
Click to expand it.
hpvm/test/dnn_benchmarks/pytorch/test_profiling/test_profiling.py
+
2
−
1
View file @
831efeff
...
...
@@ -4,7 +4,7 @@ import site
from
pathlib
import
Path
from
sys
import
argv
from
hpvm_profiler
import
profile_configs
,
read_hpvm_configs
,
write_hpvm_configs
from
hpvm_profiler
import
profile_configs
,
read_hpvm_configs
,
write_hpvm_configs
,
plot_hpvm_configs
self_folder
=
Path
(
__file__
).
parent
.
absolute
()
site
.
addsitedir
(
self_folder
.
parent
)
...
...
@@ -20,3 +20,4 @@ out_config_file = f"./{netname}.txt"
header
,
configs
=
read_hpvm_configs
(
config_file
)
profile_configs
(
binary_file
,
configs
[
1
:
6
],
configs
[
0
],
progress_bar
=
False
)
write_hpvm_configs
(
header
,
configs
[:
6
],
out_config_file
)
plot_hpvm_configs
(
out_config_file
,
f
"
{
netname
}
.png
"
)
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