MCPcopy Create free account
hub / github.com/294coder/Dif-PAN / __init__

Method __init__

models/sr3.py:212–214  ·  view source on GitHub ↗
(self, dim)

Source from the content-addressed store, hash-verified

210# PositionalEncoding Source: https://github.com/lmnt-com/wavegrad/blob/master/src/wavegrad/model.py
211class PositionalEncoding(nn.Module):
212 def __init__(self, dim):
213 super().__init__()
214 self.dim = dim
215
216 def forward(self, noise_level):
217 count = self.dim // 2

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected