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

Method __init__

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

Source from the content-addressed store, hash-verified

271
272 class ClassifierEnd2End(torch.nn.Module):
273 def __init__(self, model):
274 super().__init__()
275 self.model = model
276
277 def forward(self, x: torch.Tensor) -> torch.Tensor:
278 softmax = torch.nn.functional.softmax(self.model(x), dim=1)

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected