mirror of https://github.com/coqui-ai/TTS.git
xtts/perceiver_encoder: Delete duplicate exists()
This commit is contained in:
parent
aa549e9028
commit
32abb1a7c4
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue