24bf6ad607b491fc28c83b930e7cec927599d73f,python/ray/util/sgd/torch/examples/cifar_pytorch_example.py,,,#,163

Before Change



    ray.init(address=args.address, log_to_driver=True)

    if args.tune:
        tune_example(
            num_workers=args.num_workers,
            use_gpu=args.use_gpu,
            test_mode=args.smoke_test)
    else:
        train_example(
            num_workers=args.num_workers,
            num_epochs=args.num_epochs,
            use_gpu=args.use_gpu,
            use_fp16=args.fp16,
            test_mode=args.smoke_test)

After Change


        pbar.set_postfix(dict(acc=val_stats["val_accuracy"]))

    print(trainer1.validate())
    trainer1.shutdown()
    print("success!")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: ray-project/ray
Commit Name: 24bf6ad607b491fc28c83b930e7cec927599d73f
Time: 2020-04-01
Author: rliaw@berkeley.edu
File Name: python/ray/util/sgd/torch/examples/cifar_pytorch_example.py
Class Name:
Method Name:


Project Name: ray-project/ray
Commit Name: d5a7c53908018c72a663859990db016d86a4ac5e
Time: 2020-09-15
Author: amogkam@users.noreply.github.com
File Name: python/ray/util/sgd/torch/torch_trainer.py
Class Name: TorchTrainer
Method Name: shutdown


Project Name: keras-team/keras
Commit Name: 4a58b178073f0ba3b166220f7ebd7d56149bfb20
Time: 2017-12-01
Author: maarten@de-vri.es
File Name: keras/utils/data_utils.py
Class Name: GeneratorEnqueuer
Method Name: stop