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

Fix code for indexarray autodiff

parent 34a64535
No related branches found
No related tags found
No related merge requests found
......@@ -134,7 +134,7 @@ def _create_backward_assignments_tf_mad(self, diff_fields_prefix):
] += sp.diff(forward_assignment.rhs, ra) * diff_write_field[inverted_offset]
for index in range(diff_read_field.index_shape[0]):
if True:
if self.time_constant_fields is not None and forward_read_field in self._time_constant_fields:
# Accumulate in case of time_constant_fields
assignment = ps.Assignment(
diff_read_field.center_vector[index],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment