MCPcopy Create free account
hub / github.com/microsoft/TRELLIS / __init__

Method __init__

trellis/modules/sparse/conv/conv_torchsparse.py:7–11  ·  view source on GitHub ↗
(self, in_channels, out_channels, kernel_size, stride=1, dilation=1, bias=True, indice_key=None)

Source from the content-addressed store, hash-verified

5
6class SparseConv3d(nn.Module):
7 def __init__(self, in_channels, out_channels, kernel_size, stride=1, dilation=1, bias=True, indice_key=None):
8 super(SparseConv3d, self).__init__()
9 if 'torchsparse' not in globals():
10 import torchsparse
11 self.conv = torchsparse.nn.Conv3d(in_channels, out_channels, kernel_size, stride, 0, dilation, bias)
12
13 def forward(self, x: SparseTensor) -> SparseTensor:
14 out = self.conv(x.data)

Callers 1

__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected