Skip to content

Commit

Permalink
minor adjust
Browse files Browse the repository at this point in the history
  • Loading branch information
frankaging committed Mar 26, 2024
1 parent becd113 commit 1d924c1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pyvene/models/intervenable_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1439,7 +1439,10 @@ def forward(
)

# run intervened forward
counterfactual_outputs = self.model(**base, labels=labels)
if labels is not None:
counterfactual_outputs = self.model(**base, labels=labels)
else:
counterfactual_outputs = self.model(**base)
set_handlers_to_remove.remove()

self._output_validation()
Expand Down

0 comments on commit 1d924c1

Please sign in to comment.