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

Function FlattenForData

tensorflow/python/util/util.cc:899–908  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

897bool IsSequenceForData(PyObject* o) { return IsSequenceForDataHelper(o) == 1; }
898
899PyObject* FlattenForData(PyObject* nested) {
900 PyObject* list = PyList_New(0);
901 if (FlattenHelper(nested, list, IsSequenceForDataHelper,
902 GetValueIteratorForData)) {
903 return list;
904 } else {
905 Py_DECREF(list);
906 return nullptr;
907 }
908}
909
910PyObject* IsNamedtuple(PyObject* o, bool strict) {
911 // Must be subclass of tuple

Callers

nothing calls this directly

Calls 1

FlattenHelperFunction · 0.85

Tested by

no test coverage detected