MCPcopy Create free account
hub / github.com/MoonInTheRiver/DiffSinger / override

Method override

usr/diff/net.py:21–29  ·  view source on GitHub ↗
(self, attrs)

Source from the content-addressed store, hash-verified

19 self.__dict__ = self
20
21 def override(self, attrs):
22 if isinstance(attrs, dict):
23 self.__dict__.update(**attrs)
24 elif isinstance(attrs, (list, tuple, set)):
25 for attr in attrs:
26 self.override(attr)
27 elif attrs is not None:
28 raise NotImplementedError
29 return self
30
31
32class SinusoidalPosEmb(nn.Module):

Callers

nothing calls this directly

Calls 1

updateMethod · 0.80

Tested by

no test coverage detected