Failing CUDA tests fixes (#4682)
This commit is contained in:
parent
263bfd1e93
commit
2bc6e647c7
4 changed files with 6 additions and 6 deletions
|
|
@ -311,7 +311,7 @@ def yaml_save(file='data.yaml', data=None, header=''):
|
|||
data[k] = str(v)
|
||||
|
||||
# Dump data to file in YAML format
|
||||
with open(file, 'w') as f:
|
||||
with open(file, 'w', errors='ignore', encoding='utf-8') as f:
|
||||
if header:
|
||||
f.write(header)
|
||||
yaml.safe_dump(data, f, sort_keys=False, allow_unicode=True)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue