MCPcopy Create free account
hub / github.com/WeChatCV/WeVisionOne / forward

Method forward

WeVisionOne/pixel_decoder/groundingdino/utils.py:148–151  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

146 )
147
148 def forward(self, x):
149 for i, layer in enumerate(self.layers):
150 x = F.relu(layer(x)) if i < self.num_layers - 1 else layer(x)
151 return x
152
153
154def _get_activation_fn(activation, d_model=256, batch_dim=0):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected