Skip to content

Commit

Permalink
Delete duplicate exists()
Browse files Browse the repository at this point in the history
  • Loading branch information
akx committed Nov 6, 2023
1 parent 3528a80 commit 1e6abb3
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 1e6abb3

Please sign in to comment.