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:
|
if mixed_precision:
|
||||||
cm = torch.cuda.amp.autocast()
|
cm = torch.cuda.amp.autocast()
|
||||||
else:
|
else:
|
||||||
if platform.python_version() <= "3.6.0":
|
# if platform.python_version() <= "3.6.0":
|
||||||
cm = contextlib.suppress()
|
cm = contextlib.suppress()
|
||||||
else:
|
# else:
|
||||||
cm = contextlib.nullcontext()
|
# cm = contextlib.nullcontext()
|
||||||
return cm
|
return cm
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue