Commit ddba65e5 authored by Stephan Seitz's avatar Stephan Seitz
Browse files

Add additional assertions

parent 906de4b0
......@@ -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):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment