MCPcopy Create free account
hub / github.com/OpenDriveLab/ReSim / __init__

Method __init__

sat/sgm/modules/cp_enc_dec.py:434–444  ·  view source on GitHub ↗
(
        self,
        in_channels,
        with_conv,
        compress_time=False,
    )

Source from the content-addressed store, hash-verified

432
433class Upsample3D(nn.Module):
434 def __init__(
435 self,
436 in_channels,
437 with_conv,
438 compress_time=False,
439 ):
440 super().__init__()
441 self.with_conv = with_conv
442 if self.with_conv:
443 self.conv = torch.nn.Conv2d(in_channels, in_channels, kernel_size=3, stride=1, padding=1)
444 self.compress_time = compress_time
445
446 def forward(self, x):
447 if self.compress_time:

Callers 6

__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected