mirror of
https://github.com/wassname/TTS.git
synced 2026-10-27 12:30:27 +08:00
temporary travis check
This commit is contained in:
1 parent
79ed5debcd
commit
8b0e0846a3
1 file changed
+4
-4
@@ -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