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
OpenDAS
FastMoE
Commits
0d9c540f
Commit
0d9c540f
authored
Dec 30, 2020
by
Rick Ho
Browse files
fix timing bug
parent
8cff6ad7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
pytorch/cuda/moe_test.py
pytorch/cuda/moe_test.py
+1
-1
No files found.
pytorch/cuda/moe_test.py
View file @
0d9c540f
...
@@ -26,7 +26,7 @@ def perf():
...
@@ -26,7 +26,7 @@ def perf():
te
=
time
.
time
()
te
=
time
.
time
()
tott
+=
te
-
ts
tott
+=
te
-
ts
gflops
=
2e-9
*
n_runs
*
in_feat
*
out_feat
*
batch_size
gflops
=
2e-9
*
n_runs
*
in_feat
*
out_feat
*
batch_size
/
tott
print
(
'Mean time {:.3f} ms, {:.3f} GFLOPs'
.
format
(
tott
*
1e3
/
n_runs
,
gflops
))
print
(
'Mean time {:.3f} ms, {:.3f} GFLOPs'
.
format
(
tott
*
1e3
/
n_runs
,
gflops
))
...
...
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