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

Function GetDeviceName

tensorflow/python/eager/pywrap_tfe_src.cc:2799–2804  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2797}
2798
2799const char* GetDeviceName(PyObject* py_device_name) {
2800 if (py_device_name != Py_None) {
2801 return TFE_GetPythonString(py_device_name);
2802 }
2803 return nullptr;
2804}
2805
2806bool RaiseIfNotPySequence(PyObject* seq, const string& attr_name) {
2807 if (!PySequence_Check(seq)) {

Callers 1

TFE_Py_FastPathExecute_CFunction · 0.70

Calls 1

TFE_GetPythonStringFunction · 0.85

Tested by

no test coverage detected