43b15a8cafdea9378deb5ab879e1c7ac7e5f3336,tests/python/unittest/test_auto_scheduler_cost_model.py,,test_xgb_model,#,55

Before Change


    assert rmse <= 0.3

    // test loading a record file
    with tempfile.NamedTemporaryFile() as fp:
        auto_scheduler.save_records(fp.name, inputs, results)
        model.update_from_file(fp.name)

    // test model serialization
    with tempfile.NamedTemporaryFile() as fp:
        model.save(fp.name)
        model.load(fp.name)

After Change


    assert rmse <= 0.3

    // test loading a record file
    tmpdir = tvm.contrib.utils.tempdir()
    tmpfile = tmpdir.relpath("test1")
    auto_scheduler.save_records(tmpfile, inputs, results)
    model.update_from_file(tmpfile)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: apache/incubator-tvm
Commit Name: 43b15a8cafdea9378deb5ab879e1c7ac7e5f3336
Time: 2021-02-25
Author: bobkimball@gmail.com
File Name: tests/python/unittest/test_auto_scheduler_cost_model.py
Class Name:
Method Name: test_xgb_model


Project Name: facebookresearch/ParlAI
Commit Name: 37f58cc580da8735ae5a259d4cb4ba0b8701e78e
Time: 2019-02-08
Author: roller@fb.com
File Name: tests/test_pytorch_data_teacher.py
Class Name: TestPytorchDataTeacher
Method Name: test_valid_pyt_batchsort


Project Name: facebookresearch/ParlAI
Commit Name: 37f58cc580da8735ae5a259d4cb4ba0b8701e78e
Time: 2019-02-08
Author: roller@fb.com
File Name: tests/test_pytorch_data_teacher.py
Class Name: TestPytorchDataTeacher
Method Name: test_pyt_preprocess