MCPcopy 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
165def squared_relu(x: torch.Tensor) -> torch.Tensor:
166 return F.relu(x) ** 2
167
168class FeedForward(nn.Module):
169 def __init__(

Callers 1

forwardMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected