c9e80b3f0d81a69e7022b2447ee6809d4e2d2ed7,scripts/bert/finetune_classifier.py,,,#,495
Before Change
if __name__ == "__main__":
pool_type = os.environ.get("MXNET_GPU_MEM_POOL_TYPE", "")
if pool_type.lower() == "round":
logging.info(
"Setting MXNET_GPU_MEM_POOL_TYPE="Round" may lead to higher memory "
"usage and faster speed. If you encounter OOM errors, please unset "
"this environment variable.")
if not args.only_inference:
train(task.get_metric())
elif model_parameters:
inference(task.get_metric())
After Change
if __name__ == "__main__":
train(task.metrics)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 2
Instances
Project Name: dmlc/gluon-nlp
Commit Name: c9e80b3f0d81a69e7022b2447ee6809d4e2d2ed7
Time: 2019-05-07
Author: linhaibin.eric@gmail.com
File Name: scripts/bert/finetune_classifier.py
Class Name:
Method Name:
Project Name: dmlc/gluon-nlp
Commit Name: 5fe8d7b7f5770d82e4f3bfb489a67999d9442ce6
Time: 2020-01-22
Author: 798672141@qq.com
File Name: scripts/language_model/run_glue.py
Class Name:
Method Name:
Project Name: OpenNMT/OpenNMT-tf
Commit Name: 955a4eaa4c31782022f25f80781fffe62b3fa874
Time: 2019-11-15
Author: guillaumekln@users.noreply.github.com
File Name: examples/library/minimal_transformer_training.py
Class Name:
Method Name: main