Skip to content

Commit

Permalink
Fix DiscreteDqnInput.from_dict (facebookresearch#506)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: facebookresearch#506

Use `ExtraData.from_dict`

Reviewed By: czxttkl

Differential Revision: D29768249

fbshipit-source-id: de0056420ab71a79c4f9821cf451328949256037
  • Loading branch information
kittipatv authored and facebook-github-bot committed Jul 21, 2021
1 parent ba06d68 commit f4c3062
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reagent/core/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -757,7 +757,7 @@ def from_dict(cls, batch):
next_action=batch[InputColumn.NEXT_ACTION],
possible_actions_mask=batch[InputColumn.POSSIBLE_ACTIONS_MASK],
possible_next_actions_mask=batch[InputColumn.POSSIBLE_NEXT_ACTIONS_MASK],
extras=batch[InputColumn.EXTRAS],
extras=ExtraData.from_dict(batch),
)


Expand Down

0 comments on commit f4c3062

Please sign in to comment.