MCPcopy Create free account
hub / github.com/pytorch/executorch / __init__

Method __init__

backends/nxp/tests/models.py:104–126  ·  view source on GitHub ↗
(
        self,
        bias: bool = True,
        dilation: Union[int, tuple[int, int]] = 1,
        in_channels: int = 4,
        kernel_size: Union[int, tuple[int, int]] = 3,
        out_channels: int = 8,
        padding: Union[str, int, Collection[int]] = 0,
        stride: Union[int, tuple[int, int]] = 2,
        group: int = 1,
    )

Source from the content-addressed store, hash-verified

102
103class Conv3dModule(torch.nn.Module):
104 def __init__(
105 self,
106 bias: bool = True,
107 dilation: Union[int, tuple[int, int]] = 1,
108 in_channels: int = 4,
109 kernel_size: Union[int, tuple[int, int]] = 3,
110 out_channels: int = 8,
111 padding: Union[str, int, Collection[int]] = 0,
112 stride: Union[int, tuple[int, int]] = 2,
113 group: int = 1,
114 ):
115 super().__init__()
116
117 self.conv = torch.nn.Conv3d(
118 in_channels=in_channels,
119 out_channels=out_channels,
120 kernel_size=kernel_size,
121 stride=stride,
122 padding=padding,
123 dilation=dilation,
124 bias=bias,
125 groups=group,
126 )
127
128 def forward(self, x):
129 return self.conv(x)

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected