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

Function GetPythonObjectFromInt

tensorflow/python/eager/pywrap_tfe_src.cc:700–706  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

698}
699
700PyObject* GetPythonObjectFromInt(int num) {
701#if PY_MAJOR_VERSION >= 3
702 return PyLong_FromLong(num);
703#else
704 return PyInt_FromLong(num);
705#endif
706}
707
708// Python subclass of Exception that is created on not ok Status.
709tensorflow::mutex exception_class_mutex(tensorflow::LINKER_INITIALIZED);

Callers 2

RecordGradientFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected