remove f strings for python back compatibility (#906)

This commit is contained in:
Sridhar Thiagarajan
2019-05-31 14:27:11 -07:00
committed by pzhokhov
parent f7d5a265e1
commit 7614b02f7a

View File

@@ -65,7 +65,7 @@ def check_synced(localval, comm=None):
vals = comm.gather(localval)
if comm.rank == 0:
assert all(val==vals[0] for val in vals[1:]),\
f'MpiAdamOptimizer detected that different workers have different weights: {vals}'
'MpiAdamOptimizer detected that different workers have different weights: {}'.format(vals)
@with_mpi(timeout=5)
def test_nonfreeze():