Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/microsoft/BitNet
/ squared_relu
Function
squared_relu
gpu/model.py:165–166 ·
view source on GitHub ↗
(x: torch.Tensor)
Source
from the content-addressed store, hash-verified
163
164
@torch.compile
165
def
squared_relu(x: torch.Tensor) -> torch.Tensor:
166
return
F.relu(x) ** 2
167
168
class
FeedForward(nn.Module):
169
def
__init__(
Callers
1
forward
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected