Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pystencils_autodiff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
pycodegen
pystencils_autodiff
Commits
353c684f
Commit
353c684f
authored
5 years ago
by
Stephan Seitz
Browse files
Options
Downloads
Patches
Plain Diff
Remove some `ifmain` in tests
parent
1986b681
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
tests/test_framework_printer.py
+0
-7
0 additions, 7 deletions
tests/test_framework_printer.py
tests/test_module_printing.py
+0
-7
0 additions, 7 deletions
tests/test_module_printing.py
tests/test_tfmad.py
+1
-5
1 addition, 5 deletions
tests/test_tfmad.py
with
1 addition
and
19 deletions
tests/test_framework_printer.py
+
0
−
7
View file @
353c684f
...
@@ -149,10 +149,3 @@ def test_generate_kernel_call_only_texture_for_one_field():
...
@@ -149,10 +149,3 @@ def test_generate_kernel_call_only_texture_for_one_field():
code
=
FrameworkIntegrationPrinter
()(
wrapper
)
code
=
FrameworkIntegrationPrinter
()(
wrapper
)
print
(
code
)
print
(
code
)
def
main
():
test_generate_kernel_call_only_texture_for_one_field
()
if
__name__
==
'
__main__
'
:
main
()
This diff is collapsed.
Click to expand it.
tests/test_module_printing.py
+
0
−
7
View file @
353c684f
...
@@ -102,11 +102,4 @@ def test_module_printing_globals():
...
@@ -102,11 +102,4 @@ def test_module_printing_globals():
print
(
module
)
print
(
module
)
def
main
():
test_module_printing
()
test_module_printing_parameter
()
test_module_printing_globals
()
if
__name__
==
'
__main__
'
:
main
()
This diff is collapsed.
Click to expand it.
tests/test_tfmad.py
+
1
−
5
View file @
353c684f
...
@@ -4,10 +4,10 @@ import os
...
@@ -4,10 +4,10 @@ import os
import
numpy
as
np
import
numpy
as
np
import
pytest
import
pytest
import
sympy
as
sp
import
pystencils
as
ps
import
pystencils
as
ps
import
pystencils_autodiff
import
pystencils_autodiff
import
sympy
as
sp
from
test_utils.gradient_check_tensorflow
import
compute_gradient_error_without_border
from
test_utils.gradient_check_tensorflow
import
compute_gradient_error_without_border
...
@@ -414,7 +414,3 @@ def test_tfmad_two_outputs():
...
@@ -414,7 +414,3 @@ def test_tfmad_two_outputs():
print
(
'
Backward
'
)
print
(
'
Backward
'
)
print
(
curl_op
.
backward_assignments
)
print
(
curl_op
.
backward_assignments
)
# if __name__ == "__main__":
# test_tfmad_gradient_check_torch_native(True, False)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment