MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / MakeInt

Function MakeInt

tensorflow/python/eager/pywrap_tfe_src.cc:925–931  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

923}
924
925static tensorflow::int64 MakeInt(PyObject* integer) {
926#if PY_MAJOR_VERSION >= 3
927 return PyLong_AsLong(integer);
928#else
929 return PyInt_AsLong(integer);
930#endif
931}
932
933static tensorflow::int64 FastTensorId(PyObject* tensor) {
934 if (EagerTensor_CheckExact(tensor)) {

Callers 7

FastTensorIdFunction · 0.85
FastTensorDtypeFunction · 0.85
NumElementsMethod · 0.85
MakeIntListFunction · 0.85
TapeTensorFromTensorFunction · 0.85
TFE_Py_EncodeTensorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected