Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Signed-off-by: Atsunori Fujita <[email protected]>
  • Loading branch information
AtsunoriFujita committed Oct 18, 2024
1 parent d8ef9fb commit dd9954b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/nlp/data/steerlm/attribute_annotate.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ def get_reward(
reward_out = output_dict["rewards"].flatten().tolist()

all_rewards.append(reward_out)
all_exceeded += output_dict["exceeded"].tolist()
if output_dict.get('exceeded', None) is not None:
all_exceeded += output_dict["exceeded"].tolist()

return all_rewards, all_exceeded

Expand Down

0 comments on commit dd9954b

Please sign in to comment.