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

Function StringToPython

tensorflow/python/framework/python_op_gen_internal.cc:356–358  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

354}
355
356string StringToPython(const string& str) {
357 return strings::StrCat("\"", absl::CEscape(str), "\"");
358}
359
360string DataTypeToPython(DataType dtype, const string& dtype_module) {
361 return strings::StrCat(dtype_module, PythonDataTypeString(dtype));

Callers 3

ShapeToPythonFunction · 0.85
AttrListToPythonFunction · 0.85
AttrValueToPythonFunction · 0.85

Calls 2

CEscapeFunction · 0.85
StrCatFunction · 0.50

Tested by

no test coverage detected