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

Class SoftmaxModule

backends/nxp/tests/models.py:157–164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

155
156
157class SoftmaxModule(torch.nn.Module):
158 def __init__(self, dim: int):
159 super().__init__()
160
161 self.softmax = torch.nn.Softmax(dim=dim)
162
163 def forward(self, x):
164 return self.softmax(x)
165
166
167class SoftmaxConvModule(torch.nn.Module):

Calls

no outgoing calls