Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tsoc
superbenchmark
Commits
4561c835
Unverified
Commit
4561c835
authored
Apr 09, 2021
by
guoshzhao
Committed by
GitHub
Apr 09, 2021
Browse files
specify the framework for matmul example. (#37)
Co-authored-by:
Guoshuai Zhao
<
guzhao@microsoft.com
>
parent
02eef9ca
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
examples/benchmarks/matmul.py
examples/benchmarks/matmul.py
+3
-4
No files found.
examples/benchmarks/matmul.py
View file @
4561c835
...
...
@@ -3,17 +3,16 @@
"""Model benchmark example for matmul with pytorch.
Command to run:
Command
s
to run:
python3 examples/benchmarks/matmul.py
"""
from
superbench.benchmarks
import
BenchmarkRegistry
from
superbench.benchmarks
import
Framework
,
BenchmarkRegistry
from
superbench.common.utils
import
logger
if
__name__
==
'__main__'
:
context
=
BenchmarkRegistry
.
create_benchmark_context
(
'matmul'
,
parameters
=
'--num_steps=20'
,
'matmul'
,
parameters
=
'--num_steps=20'
,
framework
=
Framework
.
PYTORCH
)
benchmark
=
BenchmarkRegistry
.
launch_benchmark
(
context
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment