Searched refs:fast_seq (Results 1 – 3 of 3) sorted by relevance
89 PyObject* fast_seq = NULL; in seq2set() local95 fast_seq = PySequence_Fast(seq, "arguments 1-3 must be sequences"); in seq2set()96 if (!fast_seq) in seq2set()99 for (i = 0; i < PySequence_Fast_GET_SIZE(fast_seq); i++) { in seq2set()103 if (!(o = PySequence_Fast_GET_ITEM(fast_seq, i))) in seq2set()134 Py_DECREF(fast_seq); in seq2set()139 Py_DECREF(fast_seq); in seq2set()
88 PyObject* fast_seq = NULL; in seq2set() local94 fast_seq = PySequence_Fast(seq, "arguments 1-3 must be sequences"); in seq2set()95 if (!fast_seq) in seq2set()98 for (i = 0; i < PySequence_Fast_GET_SIZE(fast_seq); i++) { in seq2set()102 if (!(o = PySequence_Fast_GET_ITEM(fast_seq, i))) in seq2set()133 Py_DECREF(fast_seq); in seq2set()138 Py_DECREF(fast_seq); in seq2set()
2058 tensorflow::Safe_PyObjectPtr fast_seq( local2060 PyObject* result = PyTuple_New(PySequence_Fast_GET_SIZE(fast_seq.get()));2061 for (int i = 0; i < PySequence_Fast_GET_SIZE(fast_seq.get()); i++) {2066 item = PySequence_Fast_GET_ITEM(fast_seq.get(), i);