8870270164e8e58f37fde60a535ce9bdbfc1cc90,rllib/agents/qmix/qmix_policy.py,QMixTorchPolicy,_unpack_observation,#QMixTorchPolicy#Any#,456
Before Change
self.observation_space.original_space,
tensorlib=np)
if self.has_action_mask:
obs = np.concatenate(
[o["obs"] for o in unpacked],
axis=1).reshape([len(obs_batch), self.n_agents, self.obs_size])
action_mask = np.concatenate(
[o["action_mask"] for o in unpacked], axis=1).reshape(
[len(obs_batch), self.n_agents, self.n_actions])
else:
After Change
if isinstance(unpacked[0], dict):
unpacked_obs = [
np.concatenate(tree.flatten(u["obs"]), 1) for u in unpacked
]
else:
unpacked_obs = unpacked
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: ray-project/ray
Commit Name: 8870270164e8e58f37fde60a535ce9bdbfc1cc90
Time: 2020-05-22
Author: sven@anyscale.io
File Name: rllib/agents/qmix/qmix_policy.py
Class Name: QMixTorchPolicy
Method Name: _unpack_observation
Project Name: asyml/texar
Commit Name: 47c71c0524c7804863f2f4bcffdef5a873d84a55
Time: 2017-10-16
Author: junxianh2@gmail.com
File Name: txtgen/modules/connectors/connectors.py
Class Name:
Method Name: _mlp_transform
Project Name: ray-project/ray
Commit Name: 1775e89f262111791fabfd40f80a24f74738fe54
Time: 2020-04-28
Author: sven@anyscale.io
File Name: rllib/models/tf/tf_action_dist.py
Class Name: MultiActionDistribution
Method Name: logp