MCPcopy Create free account
hub / github.com/apple/ml-sharp / relu_with_pushback

Function relu_with_pushback

src/sharp/utils/math.py:181–183  ·  view source on GitHub ↗

Compute relu with pushback.

(x: torch.Tensor)

Source from the content-addressed store, hash-verified

179
180
181def relu_with_pushback(x: torch.Tensor) -> torch.Tensor:
182 """Compute relu with pushback."""
183 return clamp_with_pushback(x, min=0.0)

Callers

nothing calls this directly

Calls 1

clamp_with_pushbackFunction · 0.85

Tested by

no test coverage detected