MCPcopy Create free account
hub / github.com/Royalvice/DocDiff / __init__

Method __init__

model/DocDiff.py:125–127  ·  view source on GitHub ↗
(self, in_channels: int, out_channels: int, time_channels: int, is_noise: bool = True)

Source from the content-addressed store, hash-verified

123 """
124
125 def __init__(self, in_channels: int, out_channels: int, time_channels: int, is_noise: bool = True):
126 super().__init__()
127 self.res = ResidualBlock(in_channels, out_channels, time_channels, is_noise=is_noise)
128
129 def forward(self, x: torch.Tensor, t: torch.Tensor):
130 x = self.res(x, t)

Callers

nothing calls this directly

Calls 2

ResidualBlockClass · 0.85
__init__Method · 0.45

Tested by

no test coverage detected