MCPcopy Create free account
hub / github.com/HealthX-Lab/MedCLIP-SAMv2 / forward

Method forward

saliency_maps/scripts/utils.py:16–22  ·  view source on GitHub ↗
(self, *input, **kwargs)

Source from the content-addressed store, hash-verified

14
15class mySequential(nn.Sequential):
16 def forward(self, *input, **kwargs):
17 for module in self._modules.values():
18 if type(input) == tuple:
19 input = module(*input)
20 else:
21 input = module(input)
22 return input
23
24def replace_layer(model: nn.Module, target: nn.Module, replacement: nn.Module):
25 """

Callers

nothing calls this directly

Calls 1

valuesMethod · 0.80

Tested by

no test coverage detected