Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
juga
sbws
Commits
d6332788
Unverified
Commit
d6332788
authored
Nov 14, 2018
by
teor
Browse files
Fix the torflow scaling unit tests
Part of 28442.
parent
44a588ee
Changes
1
Show whitespace changes
Inline
Side-by-side
tests/unit/lib/test_v3bwfile.py
View file @
d6332788
...
...
@@ -259,13 +259,13 @@ def test_sbws_scale(datadir):
def
test_torflow_scale
(
datadir
):
results
=
load_result_file
(
str
(
datadir
.
join
(
"results.txt"
)))
v3bwfile
=
V3BWFile
.
from_results
(
results
,
scaling_method
=
TORFLOW_SCALING
)
assert
v3bwfile
.
bw_lines
[
0
].
bw
==
1000
assert
v3bwfile
.
bw_lines
[
0
].
bw
==
524
v3bwfile
=
V3BWFile
.
from_results
(
results
,
scaling_method
=
TORFLOW_SCALING
,
torflow_cap
=
0.0001
)
assert
v3bwfile
.
bw_lines
[
0
].
bw
==
1000
v3bwfile
=
V3BWFile
.
from_results
(
results
,
scaling_method
=
TORFLOW_SCALING
,
torflow_cap
=
1
,
torflow_round_digs
=
0
)
assert
v3bwfile
.
bw_lines
[
0
].
bw
==
524
v3bwfile
=
V3BWFile
.
from_results
(
results
,
scaling_method
=
TORFLOW_SCALING
,
torflow_cap
=
1
,
torflow_round_digs
=
1
)
assert
v3bwfile
.
bw_lines
[
0
].
bw
==
500
def
test_results_away_each_other
(
datadir
):
...
...
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