MCPcopy Create free account
hub / github.com/DeepGraphLearning/DiffPack / sample

Function sample

diffpack/schedule.py:28–31  ·  view source on GitHub ↗
(sigma, PI=np.pi)

Source from the content-addressed store, hash-verified

26
27
28def sample(sigma, PI=np.pi):
29 out = sigma * np.random.randn(*sigma.shape)
30 out = (out + PI) % (2 * PI) - PI
31 return out
32
33
34class SO2Schedule(nn.Module, core.Configurable):

Callers 1

__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected