Skip to content

Commit

Permalink
xtts/perceiver_encoder: Delete duplicate exists()
Browse files Browse the repository at this point in the history
  • Loading branch information
akx committed Dec 13, 2023
1 parent 425ee4f commit 50436a4
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions TTS/tts/layers/xtts/perceiver_encoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,10 +155,6 @@ def Sequential(*mods):
return nn.Sequential(*filter(exists, mods))


def exists(x):
return x is not None


def default(val, d):
if exists(val):
return val
Expand Down

0 comments on commit 50436a4

Please sign in to comment.