From 8b0e0846a30f566802ffc271e1a9dc88fde12d10 Mon Sep 17 00:00:00 2001 From: erogol Date: Tue, 17 Nov 2020 14:17:03 +0100 Subject: [PATCH] temporary travis check --- TTS/utils/generic_utils.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/TTS/utils/generic_utils.py b/TTS/utils/generic_utils.py index b530c1ec..bd99ecc2 100644 --- a/TTS/utils/generic_utils.py +++ b/TTS/utils/generic_utils.py @@ -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