MCPcopy Create free account
hub / github.com/pytorch/executorch / __init__

Method __init__

backends/nxp/tests/models.py:225–229  ·  view source on GitHub ↗
(self, min_val, max_val, inplace=True)

Source from the content-addressed store, hash-verified

223
224class HardTanhModule(torch.nn.Module):
225 def __init__(self, min_val, max_val, inplace=True):
226 super().__init__()
227 self.hardtanh = torch.nn.Hardtanh(
228 min_val=min_val, max_val=max_val, inplace=inplace
229 )
230
231 def forward(self, x):
232 return self.hardtanh(x)

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected