da6b040e254710f0df907d838db51f4f2cc9bf93,social_rl/multiagent_tfagents/multiagent_ppo.py,MultiagentPPO,extract_single_agent_trajectory,#MultiagentPPO#Any#Any#,243
Before Change
// Remake observation while discarding reward, done, and active
observation = collections.OrderedDict()
observation["image"] = \
trajectory.observation["image"][:, :, agent_id, :, :, : ]
// Expand dims is needed here because tf-agents cannot allow an observation
// component to have shape=()
observation["direction"] = tf.expand_dims(
After Change
else:
return observation[:, :, agent_id]
observation = tf.nest.map_structure(get_single_observation,
trajectory.observation)
agent_trajectory = traj_lib.Trajectory(
step_type=trajectory.step_type,
observation=observation,
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances Project Name: google-research/google-research
Commit Name: da6b040e254710f0df907d838db51f4f2cc9bf93
Time: 2021-03-08
Author: ldennis@google.com
File Name: social_rl/multiagent_tfagents/multiagent_ppo.py
Class Name: MultiagentPPO
Method Name: extract_single_agent_trajectory
Project Name: OpenNMT/OpenNMT-tf
Commit Name: 216553203df0f6ab5c9af2b7b46255dbfb69a04c
Time: 2019-10-10
Author: guillaume.klein@systrangroup.com
File Name: opennmt/tests/text_test.py
Class Name: TextTest
Method Name: testToWordsWithJoiner
Project Name: OpenNMT/OpenNMT-tf
Commit Name: 216553203df0f6ab5c9af2b7b46255dbfb69a04c
Time: 2019-10-10
Author: guillaume.klein@systrangroup.com
File Name: opennmt/tests/text_test.py
Class Name: TextTest
Method Name: testToWordsWithSpacer