Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenGVLab/HumanBench
/ is_nested
Function
is_nested
PATH/core/fp16/utils.py:68–69 ·
view source on GitHub ↗
(x)
Source
from the content-addressed store, hash-verified
66
return
is_tensor_like(x) and is_floating_point(x)
67
68
def
is_nested(x):
69
return
isinstance(x, tuple) or isinstance(x, list)
70
71
def
should_cache(x):
72
if
is_nested(x):
Callers
6
is_fp_tensor
Function · 0.85
should_cache
Function · 0.85
collect_types
Function · 0.85
maybe_half
Function · 0.85
maybe_float
Function · 0.85
cached_cast
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected