58ac4e87c577beb2c99dfb89fa054c1a20c90cc4,tests/test_torch_agent.py,TestTorchAgent,test_vectorize,#TestTorchAgent#,34

Before Change


                print("Skipping TestTorchAgent.test_vectorize, no pytorch.")
                return

        opt = {}
        opt["no_cuda"] = True
        opt["truncate"] = 10000
        opt["history_dialog"] = 10
        opt["history_replies"] = "label_else_model"
        mdict = MockDict()

        shared = {"opt": opt, "dict": mdict}
        agent = TorchAgent(opt, shared)

After Change


                return

        from parlai.core.params import ParlaiParser
        parser = ParlaiParser()
        TorchAgent.add_cmdline_args(parser)
        parser.set_params(no_cuda=True)
        opt = parser.parse_args(print_args=False)
        mdict = MockDict()

        shared = {"opt": opt, "dict": mdict}
        agent = TorchAgent(opt, shared)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 15

Instances


Project Name: facebookresearch/ParlAI
Commit Name: 58ac4e87c577beb2c99dfb89fa054c1a20c90cc4
Time: 2018-07-31
Author: ahm@fb.com
File Name: tests/test_torch_agent.py
Class Name: TestTorchAgent
Method Name: test_vectorize


Project Name: facebookresearch/ParlAI
Commit Name: 58ac4e87c577beb2c99dfb89fa054c1a20c90cc4
Time: 2018-07-31
Author: ahm@fb.com
File Name: tests/test_torch_agent.py
Class Name: TestTorchAgent
Method Name: test_vectorize


Project Name: facebookresearch/ParlAI
Commit Name: 58ac4e87c577beb2c99dfb89fa054c1a20c90cc4
Time: 2018-07-31
Author: ahm@fb.com
File Name: tests/test_torch_agent.py
Class Name: TestTorchAgent
Method Name: test_map_unmap


Project Name: facebookresearch/ParlAI
Commit Name: 58ac4e87c577beb2c99dfb89fa054c1a20c90cc4
Time: 2018-07-31
Author: ahm@fb.com
File Name: tests/test_torch_agent.py
Class Name: TestTorchAgent
Method Name: test_maintain_dialog_history