MCPcopy Create free account
hub / github.com/CVCUDA/CV-CUDA / __init__

Method __init__

samples/common.py:321–323  ·  view source on GitHub ↗
(self, model)

Source from the content-addressed store, hash-verified

319
320 class SegmentationEnd2End(torch.nn.Module):
321 def __init__(self, model):
322 super().__init__()
323 self.model = model
324
325 def forward(self, x: torch.Tensor) -> torch.Tensor:
326 softmax = torch.nn.functional.softmax(self.model(x)["out"], dim=1)

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected