Fix deprecated warning (#6142)

This commit is contained in:
Siyuan (Ryans) Zhuang
2019-11-11 17:49:15 -08:00
committed by GitHub
parent c75ada9e04
commit f48293f96d
5 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -170,7 +170,7 @@ class LocalSyncParallelOptimizer(object):
self.max_per_device_batch_size // self._loaded_max_seq_len * len(
self.devices))
if sequences_per_minibatch < 1:
logger.warn(
logger.warning(
("Target minibatch size is {}, however the rollout sequence "
"length is {}, hence the minibatch size will be raised to "
"{}.").format(self.max_per_device_batch_size,