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

Function GetPythonObjectFromString

tensorflow/python/eager/pywrap_tfe_src.cc:2137–2143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2135static const int kFastPathExecuteInputStartIndex = 5;
2136
2137PyObject* GetPythonObjectFromString(const char* s) {
2138#if PY_MAJOR_VERSION >= 3
2139 return PyUnicode_FromString(s);
2140#else
2141 return PyBytes_FromString(s);
2142#endif
2143}
2144
2145bool CheckResourceVariable(PyObject* item) {
2146 if (tensorflow::swig::IsResourceVariable(item)) {

Callers 4

ReadVariableOpFunction · 0.85
AddInputToOpFunction · 0.85
TFE_Py_FastPathExecute_CFunction · 0.85
ToPyTupleMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected