mirror of
https://github.com/wassname/ray.git
synced 2026-07-06 05:16:30 +08:00
[core] Move log_to_driver back to public (#10422)
This commit is contained in:
@@ -102,7 +102,7 @@ if __name__ == "__main__":
|
||||
|
||||
args, _ = parser.parse_known_args()
|
||||
num_cpus = 4 if args.smoke_test else None
|
||||
ray.init(address=args.address, num_cpus=num_cpus, _log_to_driver=True)
|
||||
ray.init(address=args.address, num_cpus=num_cpus, log_to_driver=True)
|
||||
|
||||
trainer1 = TorchTrainer(
|
||||
model_creator=ResNet18,
|
||||
|
||||
@@ -98,7 +98,7 @@ if __name__ == "__main__":
|
||||
"--tune", action="store_true", default=False, help="Tune training")
|
||||
|
||||
args, _ = parser.parse_known_args()
|
||||
ray.init(address=args.address, _log_to_driver=True)
|
||||
ray.init(address=args.address, log_to_driver=True)
|
||||
|
||||
TorchTrainable = TorchTrainer.as_trainable(
|
||||
model_creator=ResNet18,
|
||||
|
||||
Reference in New Issue
Block a user