Skip to content
Snippets Groups Projects
Commit 062134d3 authored by Stephan Seitz's avatar Stephan Seitz
Browse files

Save state also for backward pass

parent 770c3ea2
No related branches found
No related tags found
No related merge requests found
......@@ -85,6 +85,7 @@ class _ForwardProjection(torch.autograd.Function):
state.projection_multiplier, volume_grad, *state.volume_origin,
*state.volume_spacing)
self.state = state
if return_none:
return volume_grad, None
else:
......@@ -92,8 +93,8 @@ class _ForwardProjection(torch.autograd.Function):
class _BackwardProjection(torch.autograd.Function):
backward = _ForwardProjection.forward
forward = _ForwardProjection.backward
backward = staticmethod(_ForwardProjection.forward)
forward = staticmethod(_ForwardProjection.backward)
class ConeBeamProjector:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment