b1657087e4039232e79e2c80dadba70c9c5006c9,test.py,,,#,73
Before Change
if args.resume:
config = torch.load(args.resume)["config"]
if args.device:
os.environ["CUDA_VISIBLE_DEVICES"] = args.device
main(config, args.resume)
After Change
help="indices of GPUs to enable (default: all)")
args = parser.parse_args()
config = ConfigParser(args)
main(config, args.resume)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: victoresque/pytorch-template
Commit Name: b1657087e4039232e79e2c80dadba70c9c5006c9
Time: 2019-04-17
Author: SunQ0313@gmail.com
File Name: test.py
Class Name:
Method Name:
Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: 596116954853f7476017242af09580eb9b6dcea2
Time: 2015-03-26
Author: yuyantingzero@gmail.com
File Name: perfkitbenchmarker/packages/fio.py
Class Name:
Method Name: ParseJobFile
Project Name: pantsbuild/pants
Commit Name: 238143038b99eb087b513e7052a494bc3de6db75
Time: 2015-05-20
Author: john.sirois@gmail.com
File Name: tests/python/pants_test/pants_run_integration_test.py
Class Name: PantsRunIntegrationTest
Method Name: run_pants_with_workdir