remove f strings for python back compatibility (#906)
This commit is contained in:
committed by
pzhokhov
parent
f7d5a265e1
commit
7614b02f7a
@@ -65,7 +65,7 @@ def check_synced(localval, comm=None):
|
|||||||
vals = comm.gather(localval)
|
vals = comm.gather(localval)
|
||||||
if comm.rank == 0:
|
if comm.rank == 0:
|
||||||
assert all(val==vals[0] for val in vals[1:]),\
|
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)
|
@with_mpi(timeout=5)
|
||||||
def test_nonfreeze():
|
def test_nonfreeze():
|
||||||
|
Reference in New Issue
Block a user