MCPcopy Create free account
hub / github.com/ICTMCG/FakeSV / forward

Method forward

code/utils/vggish_modified.py:28–39  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

26 nn.ReLU(True))
27
28 def forward(self, x):
29 x = self.features(x)
30
31 # Transpose the output from features to
32 # remain compatible with vggish embeddings
33 x = torch.transpose(x, 1, 3)
34 x = torch.transpose(x, 1, 2)
35 x = x.contiguous()
36 x = x.view(x.size(0), -1)
37
38 return x
39 # return self.embeddings(x)
40
41
42class Postprocessor(nn.Module):

Callers 1

forwardMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected