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

Method forward

sam2_train/modeling/backbones/utils.py:91–95  ·  view source on GitHub ↗
(self, x: torch.Tensor)

Source from the content-addressed store, hash-verified

89 )
90
91 def forward(self, x: torch.Tensor) -> torch.Tensor:
92 x = self.proj(x)
93 # B C H W -> B H W C
94 x = x.permute(0, 2, 3, 1)
95 return x

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected