Skip to content

Commit

Permalink
• autodiffcomposition.py, compositionrunner.py, composition.py:
Browse files Browse the repository at this point in the history
support Python execution mode by AutodiffComposition
  • Loading branch information
jdcpni committed Aug 9, 2023
1 parent f1454c5 commit b5a6f45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion psyneulink/library/compositions/compositionrunner.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def _calculate_loss(self, num_trials:int, execution_mode:pnlvm.ExecutionMode, co
return self._composition._get_total_loss(num_trials, context)
total_loss = 0
for terminal_sequence in self._composition._terminal_backprop_sequences.values():
comparator = terminal_sequence[OBJECTIVE_MECHANISM, ]
comparator = terminal_sequence[OBJECTIVE_MECHANISM]
total_loss += comparator.value[0][0]

return total_loss
Expand Down

0 comments on commit b5a6f45

Please sign in to comment.