MCPcopy Create free account
hub / github.com/MStypulkowski/diffused-heads / __init__

Method __init__

utils.py:21–24  ·  view source on GitHub ↗
(self, path)

Source from the content-addressed store, hash-verified

19
20class AudioEncoder(nn.Module):
21 def __init__(self, path):
22 super().__init__()
23 self.model = torch.jit.load(path)
24 self.register_buffer('hidden', torch.zeros(2, 1, 256))
25
26 def forward(self, audio):
27 self.reset()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected