Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Meshcapade/difflocks
/ box
Function
box
utils/resize_right/interp_methods.py:68–70 ·
view source on GitHub ↗
(x)
Source
from the content-addressed store, hash-verified
66
67
@support_sz(1)
68
def
box(x):
69
fw, to_dtype, eps = set_framework_dependencies(x)
70
return
to_dtype((-1 <= x) & (x < 0)) + to_dtype((0 <= x) & (x <= 1))
Callers
nothing calls this directly
Calls
1
set_framework_dependencies
Function · 0.85
Tested by
no test coverage detected