Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DeepRec-AI/DeepRec
/ __int__
Method
__int__
tensorflow/python/framework/ops.py:860–861 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
858
# __int__, __float__ and __index__ may copy the tensor to CPU and
859
# only work for scalars; values are cast as per numpy.
860
def
__int__(self):
861
return
int(self._numpy())
862
863
def
__long__(self):
864
return
long(self._numpy())
Callers
nothing calls this directly
Calls
1
_numpy
Method · 0.95
Tested by
no test coverage detected