Failing CUDA tests fixes (#4682)

This commit is contained in:
Glenn Jocher 2023-09-01 13:29:08 +02:00 committed by GitHub
parent 263bfd1e93
commit 2bc6e647c7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 6 deletions

View file

@ -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)