MCPcopy Index your code
hub / github.com/bshall/ZeroSpeech / encode

Method encode

model.py:50–53  ·  view source on GitHub ↗
(self, mel)

Source from the content-addressed store, hash-verified

48 return z, loss, perplexity
49
50 def encode(self, mel):
51 z = self.encoder(mel)
52 z, indices = self.codebook.encode(z.transpose(1, 2))
53 return z, indices
54
55
56class Jitter(nn.Module):

Callers 2

encode_datasetFunction · 0.45
convertFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected