Skip to content

Commit

Permalink
fixed black
Browse files Browse the repository at this point in the history
  • Loading branch information
kan-bayashi committed May 11, 2022
1 parent 2be9ddc commit ec7e2b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions espnet2/gan_tts/vits/vits.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@
if LooseVersion(torch.__version__) >= LooseVersion("1.6.0"):
from torch.cuda.amp import autocast
else:
# Nothing to do if torch<1.6.0
@contextmanager
def autocast(enabled=True):
"""Define dummy function to be compatible with torch < 1.6.0."""
def autocast(enabled=True): # NOQA
yield


Expand Down

0 comments on commit ec7e2b0

Please sign in to comment.