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
vision
Commits
3c106aa4
Commit
3c106aa4
authored
Nov 14, 2022
by
panning
Browse files
pytest "set_deterministic"
parent
6b4739b5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
test/test_functional_tensor.py
test/test_functional_tensor.py
+3
-1
No files found.
test/test_functional_tensor.py
View file @
3c106aa4
...
@@ -1087,7 +1087,9 @@ def test_autocontrast(device, dtype):
...
@@ -1087,7 +1087,9 @@ def test_autocontrast(device, dtype):
@
pytest
.
mark
.
parametrize
(
'device'
,
cpu_and_gpu
())
@
pytest
.
mark
.
parametrize
(
'device'
,
cpu_and_gpu
())
def
test_equalize
(
device
):
def
test_equalize
(
device
):
torch
.
set_deterministic
(
False
)
#pan
#torch.set_deterministic(False)
torch
.
use_deterministic_algorithms
(
False
)
check_functional_vs_PIL_vs_scripted
(
check_functional_vs_PIL_vs_scripted
(
F
.
equalize
,
F
.
equalize
,
F_pil
.
equalize
,
F_pil
.
equalize
,
...
...
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