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

Method DictValueIterator

tensorflow/python/util/util.cc:339–346  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

337class DictValueIterator : public ValueIterator {
338 public:
339 explicit DictValueIterator(PyObject* dict)
340 : dict_(dict), keys_(PyDict_Keys(dict)) {
341 if (PyList_Sort(keys_.get()) == -1) {
342 invalidate();
343 } else {
344 iter_.reset(PyObject_GetIter(keys_.get()));
345 }
346 }
347
348 Safe_PyObjectPtr next() override {
349 Safe_PyObjectPtr result;

Callers

nothing calls this directly

Calls 2

getMethod · 0.45
resetMethod · 0.45

Tested by

no test coverage detected