MCPcopy Create free account
hub / github.com/Meshcapade/difflocks / __init__

Method __init__

modules/networks.py:71–95  ·  view source on GitHub ↗
(
        self,
        in_channels,
        out_channels,
        kernel_size,
        stride=1,
        padding=0,
        padding_mode="zeros",
        dilation=1,
        groups=1,
    )

Source from the content-addressed store, hash-verified

69
70class Conv1dWN_v2(torch.nn.Conv1d):
71 def __init__(
72 self,
73 in_channels,
74 out_channels,
75 kernel_size,
76 stride=1,
77 padding=0,
78 padding_mode="zeros",
79 dilation=1,
80 groups=1,
81 ):
82 super(Conv1dWN_v2, self).__init__(
83 in_channels,
84 out_channels,
85 kernel_size,
86 stride,
87 padding,
88 dilation,
89 groups,
90 True,
91 )
92 self.g = torch.nn.Parameter(torch.ones(out_channels))
93
94 self.padding_amount=padding
95 self.padding_mode=padding_mode
96
97 def forward(self, x):
98 w= torch._weight_norm(self.weight, self.g, 0)

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected