e9f137f05d22362fc6430c8aaef9440872a85e8a,tools/nni_cmd/config_schema.py,,,#,28

Before Change


}


pai_trial_schema = {
    "trial":{
        "command": setType("command", str),
        "codeDir": setPathCheck("codeDir"),
        "gpuNum": setNumberRange("gpuNum", int, 0, 99999),
        "cpuNum": setNumberRange("cpuNum", int, 0, 99999),
        "memoryMB": setType("memoryMB", int),
        "image": setType("image", str),
        Optional("virtualCluster"): setType("virtualCluster", str),
        "nniManagerNFSMountPath": setPathCheck("nniManagerNFSMountPath"),
        "containerNFSMountPath": setType("containerNFSMountPath", str),
        "paiStoragePlugin": setType("paiStoragePlugin", str)
    }
}

After Change


}


pai_trial_schema = {
    "trial":{
        "codeDir": setPathCheck("codeDir"),
        "nniManagerNFSMountPath": setPathCheck("nniManagerNFSMountPath"),
        "containerNFSMountPath": setType("containerNFSMountPath", str),
        "command": setType("command", str),
        Optional("gpuNum"): setNumberRange("gpuNum", int, 0, 99999),
        Optional("cpuNum"): setNumberRange("cpuNum", int, 0, 99999),
        Optional("memoryMB"): setType("memoryMB", int),
        Optional("image"): setType("image", str),
        Optional("virtualCluster"): setType("virtualCluster", str),
        Optional("paiStoragePlugin"): setType("paiStoragePlugin", str),
        Optional("paiConfigPath"): And(os.path.exists, error=SCHEMA_PATH_ERROR % "paiConfigPath")
    }
}
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 10

Instances


Project Name: Microsoft/nni
Commit Name: e9f137f05d22362fc6430c8aaef9440872a85e8a
Time: 2020-02-09
Author: Quanlu.Zhang@microsoft.com
File Name: tools/nni_cmd/config_schema.py
Class Name:
Method Name:


Project Name: Microsoft/nni
Commit Name: 17be7967d6905c3d370c5e42eff58e8aad1e8ad9
Time: 2019-06-21
Author: suiguoxin@gmail.com
File Name: tools/nni_cmd/config_schema.py
Class Name:
Method Name:


Project Name: Microsoft/nni
Commit Name: 26aa1136aee35853b68910627d7d9d5f938be905
Time: 2020-02-06
Author: shinyang@microsoft.com
File Name: tools/nni_cmd/config_schema.py
Class Name:
Method Name: