MCPcopy Create free account
hub / github.com/MeiGen-AI/MultiTalk / UpSample1d

Class UpSample1d

kokoro/istftnet.py:328–337  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

326
327
328class UpSample1d(nn.Module):
329 def __init__(self, layer_type):
330 super().__init__()
331 self.layer_type = layer_type
332
333 def forward(self, x):
334 if self.layer_type == 'none':
335 return x
336 else:
337 return F.interpolate(x, scale_factor=2, mode='nearest')
338
339
340class AdainResBlk1d(nn.Module):

Callers 1

__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected