mirror of
https://github.com/wassname/TTS.git
synced 2026-09-09 11:16:00 +08:00
temporary travis check
This commit is contained in:
@@ -13,10 +13,10 @@ def set_amp_context(mixed_precision):
|
||||
if mixed_precision:
|
||||
cm = torch.cuda.amp.autocast()
|
||||
else:
|
||||
if platform.python_version() <= "3.6.0":
|
||||
cm = contextlib.suppress()
|
||||
else:
|
||||
cm = contextlib.nullcontext()
|
||||
# if platform.python_version() <= "3.6.0":
|
||||
cm = contextlib.suppress()
|
||||
# else:
|
||||
# cm = contextlib.nullcontext()
|
||||
return cm
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user