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

Method __init__

models/sr3_dwt.py:224–226  ·  view source on GitHub ↗
(self, dim)

Source from the content-addressed store, hash-verified

222# PositionalEncoding Source: https://github.com/lmnt-com/wavegrad/blob/master/src/wavegrad/model.py
223class PositionalEncoding(nn.Module):
224 def __init__(self, dim):
225 super().__init__()
226 self.dim = dim
227
228 def forward(self, noise_level):
229 count = self.dim // 2

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected