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

Method next

tensorflow/python/util/util.cc:413–424  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

411 index_(0) {}
412
413 Safe_PyObjectPtr next() override {
414 Safe_PyObjectPtr result;
415 if (index_ < size_) {
416 // PySequence_Fast_GET_ITEM returns a borrowed reference.
417 PyObject* elem = PySequence_Fast_GET_ITEM(seq_.get(), index_);
418 ++index_;
419 Py_INCREF(elem);
420 result.reset(elem);
421 }
422
423 return result;
424 }
425
426 private:
427 Safe_PyObjectPtr seq_;

Callers

nothing calls this directly

Calls 2

getMethod · 0.45
resetMethod · 0.45

Tested by

no test coverage detected