MCPcopy Create free account
hub / github.com/ImprintLab/Medical-SAM2 / forward

Method forward

sam2_train/modeling/memory_encoder.py:130–135  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

128 self.proj = nn.Conv2d(dim, dim, kernel_size=1)
129
130 def forward(self, x):
131 # normally x: (N, C, H, W)
132 x = self.proj(x)
133 for layer in self.layers:
134 x = layer(x)
135 return x
136
137
138class MemoryEncoder(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected