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
0324117f
Unverified
Commit
0324117f
authored
Apr 26, 2021
by
guoshzhao
Committed by
GitHub
Apr 26, 2021
Browse files
Benchmarks: Fix Bug - Fix dataset precision for CNN and LSTM benchmarks.
parent
2299d238
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
superbench/benchmarks/model_benchmarks/pytorch_cnn.py
superbench/benchmarks/model_benchmarks/pytorch_cnn.py
+1
-1
superbench/benchmarks/model_benchmarks/pytorch_lstm.py
superbench/benchmarks/model_benchmarks/pytorch_lstm.py
+1
-1
No files found.
superbench/benchmarks/model_benchmarks/pytorch_cnn.py
View file @
0324117f
...
...
@@ -46,7 +46,7 @@ def _generate_dataset(self):
self
.
_dataset
=
TorchRandomDataset
(
[
self
.
_args
.
sample_count
,
3
,
self
.
_args
.
image_size
,
self
.
_args
.
image_size
],
self
.
_world_size
,
dtype
=
torch
.
lo
ng
dtype
=
torch
.
f
lo
at32
)
if
len
(
self
.
_dataset
)
==
0
:
logger
.
error
(
'Generate random dataset failed - model: {}'
.
format
(
self
.
_name
))
...
...
superbench/benchmarks/model_benchmarks/pytorch_lstm.py
View file @
0324117f
...
...
@@ -92,7 +92,7 @@ def _generate_dataset(self):
True if dataset is created successfully.
"""
self
.
_dataset
=
TorchRandomDataset
(
[
self
.
_args
.
sample_count
,
self
.
_args
.
seq_len
,
self
.
_args
.
input_size
],
self
.
_world_size
,
dtype
=
torch
.
float
[
self
.
_args
.
sample_count
,
self
.
_args
.
seq_len
,
self
.
_args
.
input_size
],
self
.
_world_size
,
dtype
=
torch
.
float
32
)
if
len
(
self
.
_dataset
)
==
0
:
logger
.
error
(
'Generate random dataset failed - model: {}'
.
format
(
self
.
_name
))
...
...
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