Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pytorch/executorch
/ __init__
Method
__init__
backends/nxp/tests/models.py:158–161 ·
view source on GitHub ↗
(self, dim: int)
Source
from the content-addressed store, hash-verified
156
157
class
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)
Callers
nothing calls this directly
Calls
1
__init__
Method · 0.45
Tested by
no test coverage detected