b39a6ac91b28369e62e885f692db72232b405f82,core_models/ner/interactive.py,,read_input_args,#,34

Before Change


                        help="Path of model weights")
    parser.add_argument("--model_info_path", type=str, required=True,
                        help="Path of model topology")
    return parser.parse_args()


args = read_input_args()
with open(args.model_info_path, "rb") as fp:

After Change


                        help="Path of model weights")
    parser.add_argument("--model_info_path", type=str, required=True,
                        help="Path of model topology")
    input_args = parser.parse_args()
    if not os.path.exists(input_args.model_path):
        print("model_path file does not exist")
        sys.exit(0)
    if not os.path.exists(input_args.model_info_path):
        print("model_info_path file does not exist")
        sys.exit(0)
    return input_args


args = read_input_args()
with open(args.model_info_path, "rb") as fp:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 11

Instances


Project Name: NervanaSystems/nlp-architect
Commit Name: b39a6ac91b28369e62e885f692db72232b405f82
Time: 2018-05-08
Author: peter.izsak@intel.com
File Name: core_models/ner/interactive.py
Class Name:
Method Name: read_input_args


Project Name: NervanaSystems/nlp-architect
Commit Name: b39a6ac91b28369e62e885f692db72232b405f82
Time: 2018-05-08
Author: peter.izsak@intel.com
File Name: core_models/ner/interactive.py
Class Name:
Method Name: read_input_args


Project Name: sony/nnabla-examples
Commit Name: 809d39a619b63e87a0044175f296083eb88e2891
Time: 2021-03-10
Author: Xu.Song@sony.com
File Name: NAS/ENAS/args.py
Class Name:
Method Name: get_micro_args


Project Name: sony/nnabla-examples
Commit Name: 809d39a619b63e87a0044175f296083eb88e2891
Time: 2021-03-10
Author: Xu.Song@sony.com
File Name: NAS/ENAS/args.py
Class Name:
Method Name: get_macro_args