File tree 2 files changed +5
-3
lines changed
ml-agents/mlagents/trainers 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
21
21
22
22
### Bugfixes
23
23
- Fixed an issue which caused self-play training sessions to consume a lot of memory. (#3451 )
24
+ - Fixed an IndexError when using GAIL or behavioral cloning with demonstrations recorded with 0.14.0 or later (#3464 )
24
25
25
26
## [ 0.14.0-preview] - 2020-02-13
26
27
Original file line number Diff line number Diff line change @@ -51,9 +51,10 @@ def make_demo_buffer(
51
51
previous_action = np .array (
52
52
pair_infos [idx - 1 ].action_info .vector_actions , dtype = np .float32
53
53
)
54
- agent_id = current_step_info .agent_id [0 ]
55
- current_agent_step_info = current_step_info .get_agent_step_result (agent_id )
56
- next_agent_step_info = next_step_info .get_agent_step_result (agent_id )
54
+ curr_agent_id = current_step_info .agent_id [0 ]
55
+ current_agent_step_info = current_step_info .get_agent_step_result (curr_agent_id )
56
+ next_agent_id = next_step_info .agent_id [0 ]
57
+ next_agent_step_info = next_step_info .get_agent_step_result (next_agent_id )
57
58
58
59
demo_raw_buffer ["done" ].append (next_agent_step_info .done )
59
60
demo_raw_buffer ["rewards" ].append (next_agent_step_info .reward )
You can’t perform that action at this time.
0 commit comments