mirror of
https://github.com/wassname/ray.git
synced 2026-06-28 04:55:04 +08:00
Fix deprecated warning (#6142)
This commit is contained in:
committed by
GitHub
parent
c75ada9e04
commit
f48293f96d
@@ -113,7 +113,7 @@ class PyTorchTrainer(object):
|
||||
batch_size_per_replica = batch_size // num_replicas
|
||||
if batch_size % num_replicas > 0:
|
||||
new_batch_size = batch_size_per_replica * num_replicas
|
||||
logger.warn(
|
||||
logger.warning(
|
||||
("Changing batch size from {old_batch_size} to "
|
||||
"{new_batch_size} to evenly distribute batches across "
|
||||
"{num_replicas} replicas.").format(
|
||||
|
||||
Reference in New Issue
Block a user