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

Function GetRegisteredType

tensorflow/python/util/util.cc:37–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35}
36
37PyObject* GetRegisteredType(const string& key) {
38 auto* m = PythonTypesMap();
39 auto it = m->find(key);
40 if (it == m->end()) return nullptr;
41 return it->second;
42}
43
44PyObject* RegisterType(PyObject* type_name, PyObject* type) {
45 if (!PyType_Check(type)) {

Callers 2

IsSparseTensorValueTypeFunction · 0.85

Calls 3

PythonTypesMapFunction · 0.85
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected