1ba2dd41729cb7254e9e40b036e3d516a05d7a28,tests/test_torch_agent.py,TestTorchAgent,test_batch_act,#TestTorchAgent#,718

Before Change


            {"text": "Hello there.",
             "eval_labels": ["General Kenobi."]},
        ]
        obs_elabs = [agent.vectorize(o) for o in obs_elabs]
        reply = agent.batch_act(obs_elabs)
        for i in range(len(obs_elabs)):
            self.assertEqual(reply[i]["text"], f"Evaluating {i}!")

After Change


        ]
        obs_elabs_vecs = []
        for o in obs_elabs:
            agent.history.clear()
            agent.history.update_history(o)
            obs_elabs_vecs.append(agent.vectorize(o, agent.history))
        reply = agent.batch_act(obs_elabs_vecs)
        import pdb; pdb.set_trace()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: facebookresearch/ParlAI
Commit Name: 1ba2dd41729cb7254e9e40b036e3d516a05d7a28
Time: 2019-02-13
Author: edinan@fb.com
File Name: tests/test_torch_agent.py
Class Name: TestTorchAgent
Method Name: test_batch_act


Project Name: facebookresearch/ParlAI
Commit Name: 1ba2dd41729cb7254e9e40b036e3d516a05d7a28
Time: 2019-02-13
Author: edinan@fb.com
File Name: tests/test_torch_agent.py
Class Name: TestTorchAgent
Method Name: test_batchify


Project Name: flow-project/flow
Commit Name: 071b27b1ffc1c38e84f64fafcc126fafa54369a1
Time: 2017-07-05
Author: akreidieh@gmail.com
File Name: cistar-dev/cistar/core/base_env.py
Class Name: SumoEnvironment
Method Name: setup_initial_state