Skip to content

Commit

Permalink
Execute the output_CIM on the last element of the batch to update the…
Browse files Browse the repository at this point in the history
… output ports
  • Loading branch information
David Turner committed Feb 13, 2025
1 parent 508e8ef commit bd9bb4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions psyneulink/library/compositions/pytorchwrappers.py
Original file line number Diff line number Diff line change
Expand Up @@ -814,8 +814,8 @@ def copy_node_values_to_psyneulink(self, nodes:Optional[Union[list,Literal[ALL,
def update_autodiff_all_output_values():
"""Update autodiff's output_values by executing its output_CIM's with pytorch_rep all_output_values"""
if self.all_output_values is not None:
pass
# self._composition.output_CIM.execute(self.all_output_values, context=context)
# Execute the output_CIM on the last element of the batch to update the output ports
self._composition.output_CIM.execute(self.all_output_values[-1, ...], context=context)

# Allow selective updating of just autodiff.output_values if specified
if nodes == OUTPUTS:
Expand Down

0 comments on commit bd9bb4f

Please sign in to comment.