mirror of https://github.com/coqui-ai/TTS.git
temporary travis check
This commit is contained in:
parent
79ed5debcd
commit
8b0e0846a3
|
@ -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":
|
||||
# if platform.python_version() <= "3.6.0":
|
||||
cm = contextlib.suppress()
|
||||
else:
|
||||
cm = contextlib.nullcontext()
|
||||
# else:
|
||||
# cm = contextlib.nullcontext()
|
||||
return cm
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue