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

Function IsString

tensorflow/python/util/util.cc:81–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79bool WarnedThatSetIsNotSequence = false;
80
81bool IsString(PyObject* o) {
82 return PyBytes_Check(o) ||
83#if PY_MAJOR_VERSION < 3
84 PyString_Check(o) ||
85#endif
86 PyUnicode_Check(o);
87}
88
89// Equivalent to Python's 'o.__class__.__name__'
90// Note that '__class__' attribute is set only in new-style classes.

Callers 2

IsSequenceHelperFunction · 0.85
IsNamedtupleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected