Fix `v.replace(" ", "")` (#531)

single_channel
Glenn Jocher 2 years ago committed by GitHub
parent e0e2f83a47
commit cc3be0e223
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -164,7 +164,7 @@ def entrypoint(debug=False):
try: try:
if k == 'device': # special DDP handling, i.e. device='0,1,2,3' if k == 'device': # special DDP handling, i.e. device='0,1,2,3'
v = v.replace('[', '').replace(']', '') # handle device=[0,1,2,3] v = v.replace('[', '').replace(']', '') # handle device=[0,1,2,3]
v = v.replace(" ", "").replace('') # handle device=[0, 1, 2, 3] v = v.replace(" ", "") # handle device=[0, 1, 2, 3]
v = v.replace('\\', '') # handle device=\'0,1,2,3\' v = v.replace('\\', '') # handle device=\'0,1,2,3\'
overrides[k] = v overrides[k] = v
else: else:

Loading…
Cancel
Save