Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DeepRec-AI/DeepRec
/ _UnpackIfSingleton
Function
_UnpackIfSingleton
tensorflow/python/ops/control_flow_ops.py:1086–1090 ·
view source on GitHub ↗
(res)
Source
from the content-addressed store, hash-verified
1084
1085
1086
def
_UnpackIfSingleton(res):
1087
if
isinstance(res, (list, _basetuple)) and len(res) == 1:
1088
return
res[0]
1089
else
:
1090
return
res
1091
1092
1093
# pylint: disable=redefined-outer-name
Callers
1
cond
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected