Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
pycodegen
pystencils_autodiff
Commits
19f36b03
Commit
19f36b03
authored
Dec 17, 2019
by
Stephan Seitz
Browse files
Remove unnecessary xfails
parent
64fbd5eb
Pipeline
#20588
passed with stage
in 3 minutes and 7 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
tests/backends/test_torch_native_compilation.py
View file @
19f36b03
...
...
@@ -150,7 +150,7 @@ def test_torch_native_compilation_gpu():
assert
'call_backward'
in
dir
(
torch_extension
)
@
pytest
.
mark
.
parametrize
(
'target'
,
(
pytest
.
param
(
'gpu'
,
marks
=
pytest
.
mark
.
xfail
),
'cpu'
)
)
@
pytest
.
mark
.
skipif
(
'CI'
in
os
.
environ
,
reason
=
"GPU too old on GITLAB CI"
)
def
test_execute_torch
(
target
):
import
pycuda.autoinit
module_name
=
"Ololol"
+
target
...
...
tests/test_tensorflow_jit.py
View file @
19f36b03
...
...
@@ -8,18 +8,19 @@
"""
import
os
from
os.path
import
exists
import
pytest
import
sympy
import
pystencils
import
pystencils_autodiff
import
sympy
from
pystencils_autodiff
import
create_backward_assignments
from
pystencils_autodiff.backends.astnodes
import
TensorflowModule
@
pytest
.
mark
.
xfail
(
reason
=
"cannot link against cudart on GITLAB CI"
,
strict
=
False
)
@
pytest
.
mark
.
skipif
(
'CI'
in
os
.
environ
,
reason
=
"GPU too old on GITLAB CI"
)
def
test_tensorflow_jit_gpu
():
pytest
.
importorskip
(
'tensorflow'
)
...
...
tests/test_tfmad.py
View file @
19f36b03
...
...
@@ -231,7 +231,10 @@ def test_tfmad_gradient_check_torch_native(with_offsets, with_cuda):
[
dict
[
f
]
for
f
in
auto_diff
.
forward_input_fields
]),
atol
=
1e-4
,
raise_exception
=
True
)
@
pytest
.
mark
.
parametrize
(
'with_cuda'
,
(
False
,
pytest
.
param
(
True
,
marks
=
pytest
.
mark
.
xfail
)))
@
pytest
.
mark
.
parametrize
(
'with_cuda'
,
(
False
,
pytest
.
param
(
True
,
marks
=
pytest
.
mark
.
skipif
(
'CI'
in
os
.
environ
,
reason
=
"GPU too old on GITLAB CI"
))))
def
test_tfmad_gradient_check_two_outputs
(
with_cuda
):
torch
=
pytest
.
importorskip
(
'torch'
)
import
torch
...
...
@@ -283,7 +286,8 @@ def test_tfmad_gradient_check_two_outputs(with_cuda):
@
pytest
.
mark
.
parametrize
(
'gradient_check'
,
(
False
,
'with_gradient_check'
))
@
pytest
.
mark
.
parametrize
(
'with_cuda'
,
(
False
,
pytest
.
param
(
'with_cuda'
,
marks
=
pytest
.
mark
.
xfail
)))
@
pytest
.
mark
.
parametrize
(
'with_cuda'
,
(
False
,
pytest
.
param
(
'with_cuda'
,
marks
=
pytest
.
mark
.
skipif
(
'CI'
in
os
.
environ
,
reason
=
"GPU too old on GITLAB CI"
))))
@
pytest
.
mark
.
parametrize
(
'with_offsets'
,
(
False
,
'with_offsets'
))
# @pytest.mark.xfail(reason="", strict=False)
def
test_tfmad_gradient_check_tensorflow_native
(
with_offsets
,
with_cuda
,
gradient_check
):
...
...
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