Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pyronn-torch
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
Show more breadcrumbs
Stephan Seitz
pyronn-torch
Commits
6a5b3fef
Commit
6a5b3fef
authored
5 years ago
by
Stephan Seitz
Browse files
Options
Downloads
Patches
Plain Diff
Try to make module independent from pystencils
parent
bb60b621
No related branches found
No related tags found
No related merge requests found
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/pyronn_torch/__init__.py
+1
-1
1 addition, 1 deletion
src/pyronn_torch/__init__.py
src/pyronn_torch/codegen.py
+184
-132
184 additions, 132 deletions
src/pyronn_torch/codegen.py
tests/test_projection.py
+4
-1
4 additions, 1 deletion
tests/test_projection.py
with
189 additions
and
134 deletions
src/pyronn_torch/__init__.py
+
1
−
1
View file @
6a5b3fef
...
...
@@ -24,6 +24,6 @@ except Exception as e:
import
warnings
warnings
.
warn
(
str
(
e
))
import
pyronn_torch.codegen
cpp_extension
=
pyronn_torch
.
codegen
.
generat
e_shared_object
()
cpp_extension
=
pyronn_torch
.
codegen
.
compil
e_shared_object
()
__all__
=
[
'
ConeBeamProjector
'
,
'
cpp_extension
'
]
This diff is collapsed.
Click to expand it.
src/pyronn_torch/codegen.py
+
184
−
132
View file @
6a5b3fef
This diff is collapsed.
Click to expand it.
tests/test_projection.py
+
4
−
1
View file @
6a5b3fef
...
...
@@ -6,6 +6,8 @@
"""
"""
import
pytest
import
pyronn_torch
...
...
@@ -13,7 +15,8 @@ def test_init():
assert
pyronn_torch
.
cpp_extension
def
test_projection
():
@pytest.mark.parametrize
(
'
with_texture
'
,
(
'
with_texture
'
,
False
))
def
test_projection
(
with_texture
):
projector
=
pyronn_torch
.
ConeBeamProjector
.
from_conrad_config
()
volume
=
projector
.
new_volume_tensor
()
...
...
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