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

Add additional assertions

parent 906de4b0
No related branches found
No related tags found
No related merge requests found
......@@ -472,6 +472,7 @@ Backward:
@property
def backward_ast_cpu(self):
assert self._backward_assignments, 'No backward assignments!'
if not self._backward_ast_cpu:
if (self._boundary_handling == AutoDiffBoundaryHandling.ZEROS or
self._boundary_handling == AutoDiffBoundaryHandling.VALID):
......@@ -488,6 +489,7 @@ Backward:
@property
def backward_ast_gpu(self):
assert self._backward_assignments, 'No backward assignments!'
if not self._backward_ast_gpu:
if (self._boundary_handling == AutoDiffBoundaryHandling.ZEROS or
self._boundary_handling == AutoDiffBoundaryHandling.VALID):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment