Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DeepRec-AI/DeepRec
/ __bool__
Method
__bool__
tensorflow/python/framework/ops.py:875–876 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
873
return
int(maybe_arr)
# Must be a NumPy scalar.
874
875
def
__bool__(self):
876
return
bool(self._numpy())
877
878
__nonzero__ = __bool__
879
Callers
nothing calls this directly
Calls
1
_numpy
Method · 0.95
Tested by
no test coverage detected