MCPcopy Create free account
hub / github.com/OpenDriveLab/DriveAdapter / forward

Method forward

roach/models/torch_util.py:90–96  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

88 )
89
90 def forward(self, x):
91 x = self.firstconv(x)
92 if getattr(self, "pool", True):
93 x = F.max_pool2d(x, kernel_size=3, stride=2, padding=1)
94 for block in self.blocks:
95 x = block(x)
96 return x
97
98 def output_shape(self, inshape):
99 c, h, w = inshape

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected