83a4e59ca670d4cc1ccb34e0b9f80ce5bf22dd49,tests/main_test.py,TestMain,test_docnn_with_torchscript_export,#TestMain#,87

Before Change


        )
        expected = ExportConfig:\n    accelerate: []\n    batch_padding_control: None\n    export_caffe2_path: /tmp/model.caffe2.predictor\n    export_lite_path: None\n    export_onnx_path: /tmp/model.onnx\n    export_torchscript_path: /tmp/new_docnn.pt1\n    inference_interface: None\n    seq_padding_control: None\n    torchscript_quantize: False
        assert not result.exception, result.exception
        assert expected in result.output

        // export the trained model with output path
        result = self.runner.invoke(
            main,

After Change


                os.path.join(self.config_base_path, "export_options.json"),
            ],
        )
        expected = [
            "accelerate: []",
            "batch_padding_control: None",
            "export_caffe2_path: /tmp/model.caffe2.predictor",
            "export_lite_path: None",
            "export_onnx_path: /tmp/model.onnx",
            "export_torchscript_path: /tmp/new_docnn.pt1",
            "seq_padding_control: None",
            "target: unknown",
            "torchscript_quantize: False",
        ]
        assert not result.exception, result.exception
        for item in expected:
            assert item in result.output

        // export the trained model with output path
        result = self.runner.invoke(
            main,
            args=[
                "--config-json",
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: facebookresearch/pytext
Commit Name: 83a4e59ca670d4cc1ccb34e0b9f80ce5bf22dd49
Time: 2021-03-18
Author: mleshen@fb.com
File Name: tests/main_test.py
Class Name: TestMain
Method Name: test_docnn_with_torchscript_export


Project Name: allenai/allennlp
Commit Name: f700584ed1b72ab45215e405ed0d22564938d1cb
Time: 2017-11-17
Author: joelgrus@gmail.com
File Name: tests/commands/evaluate_test.py
Class Name: TestEvaluate
Method Name: test_evaluate_from_args


Project Name: hyperdashio/hyperdash-sdk-py
Commit Name: 833b492550d3272694032b59f50d3fc7c8bb4555
Time: 2017-07-18
Author: richardartoul@gmail.com
File Name: tests/test_cli.py
Class Name: TestCLI
Method Name: test_signup