Home
last modified time | relevance | path

Searched refs:PySequence_Fast (Results 1 – 25 of 40) sorted by relevance

12

/external/python/cpython3/Doc/c-api/
Dsequence.rst131 .. c:function:: PyObject* PySequence_Fast(PyObject *o, const char *m)
134 ``PySequence_Fast*`` family of functions. If the object is not a sequence or
138 The ``PySequence_Fast*`` functions are thus named because they assume
149 :c:func:`PySequence_Fast` and that *o* is not ``NULL``. The size can also be
158 :c:func:`PySequence_Fast`, *o* is not ``NULL``, and that *i* is within bounds.
164 by :c:func:`PySequence_Fast` and *o* is not ``NULL``.
/external/tensorflow/tensorflow/python/framework/
Dpython_api_dispatcher_wrapper.cc57 PySequence_Fast(defaults.ptr(), "defaults is not a sequence")); in MakePythonAPIDispatcher()
94 tensorflow::Safe_PyObjectPtr seq(PySequence_Fast(args.ptr(), "")); in PYBIND11_MODULE()
Dpython_api_parameter_converter_wrapper.cc33 PyObject* args_fast = PySequence_Fast(arg_list.ptr(), "Expected a list"); in Convert()
Dpython_api_dispatcher.cc280 Safe_PyObjectPtr seq(PySequence_Fast(value, "")); in Check()
/external/pytorch/torch/csrc/cuda/
Dutils.cpp15 THPObjectPtr seq = THPObjectPtr(PySequence_Fast(obj, nullptr)); in THPUtils_PySequence_to_CUDAStreamList()
Dpython_nccl.cpp84 auto seq = THPObjectPtr(PySequence_Fast(obj, "comm is not a sequence")); in unpack_comms()
302 auto seq = THPObjectPtr(PySequence_Fast(obj, "expected a sequence")); in extract_tensors()
/external/tensorflow/tensorflow/python/util/
Dfunction_parameter_canonicalizer_binding_for_test.cc47 PySequence_Fast(defaults.ptr(), "Expected tuple")); in PYBIND11_MODULE()
Dutil.cc481 : seq_(PySequence_Fast(iterable, "")), in SequenceValueIterator()
980 return PySequence_Fast( in MappingKeys()
1068 Safe_PyObjectPtr seq = make_safe(PySequence_Fast(fields.get(), "")); in IsNamedtuple()
/external/tensorflow/tensorflow/python/eager/
Dpywrap_tfe_src.cc1390 PySequence_Fast(py_result, "expected a sequence of gradients"); in CallBackwardFunction()
1971 PyObject* seq = PySequence_Fast(list, "expected a sequence");
2001 PySequence_Fast(tensors, "expected a sequence"));
2136 PySequence_Fast(list, "expected a sequence"));
2247 PyObject* seq = PySequence_Fast(tensors, "expected a sequence");
2319 PyObject* seq = PySequence_Fast(tensors, "expected a sequence");
2399 PySequence_Fast(input_tensors, "expected a sequence of tensors"));
2409 tensorflow::Safe_PyObjectPtr indices_fast(PySequence_Fast(
2427 PySequence_Fast(indices_fast_array[accumulator_index],
2493 PySequence_Fast(user_output, "expected a sequence of forward gradients"));
[all …]
/external/python/cpython3/Objects/stringlib/
Djoin.h25 seq = PySequence_Fast(iterable, "can only join an iterable"); in STRINGLIB()
/external/python/cpython3/Modules/_ctypes/
Dstgdict.c92 fieldlist = PySequence_Fast(fields, "_fields_ must be a sequence"); in MakeFields()
173 anon_names = PySequence_Fast(anon, "_anonymous_ must be a sequence"); in MakeAnonFields()
/external/pytorch/torch/csrc/utils/
Ddisable_torch_function.cpp358 PySequence_Fast(arg, "expected a sequence")); in THPModule_has_torch_function()
/external/tensorflow/tensorflow/python/client/
Dtf_session_helper.cc217 PySequence_Fast(feed_values, "feed_values must be a sequence"); in RunCallableHelper()
650 dtypes = PySequence_Fast(dtypes, "dtypes must be a sequence"); in TF_CreatePlaceholders()
/external/python/cpython3/Include/
Dabstract.h726 PyAPI_FUNC(PyObject *) PySequence_Fast(PyObject *o, const char* m);
/external/python/cpython3/Modules/
D_abc.c382 PyObject *it = PySequence_Fast( in compute_abstract_methods()
D_posixsubprocess.c1072 fast_args = PySequence_Fast(process_args, "argv must be a tuple"); in subprocess_fork_exec_impl()
Dselectmodule.c156 fast_seq = PySequence_Fast(seq, "arguments 1-3 must be sequences"); in seq2set()
2316 seq = PySequence_Fast(changelist, "changelist is not iterable"); in select_kqueue_control_impl()
D_elementtree.c1216 seq = PySequence_Fast(elements, "'elements' must be an iterable"); in _elementtree_Element_extend_impl()
1917 seq = PySequence_Fast(value, "assignment expects an iterable"); in element_ass_subscr()
4108 if (!(events_seq = PySequence_Fast(events_to_report, in _elementtree_XMLParser__setevents_impl()
/external/python/cpython3/Objects/
Dstructseq.c178 arg = PySequence_Fast(arg, "constructor requires a sequence"); in structseq_new_impl()
Dlistobject.c916 v_as_SF = PySequence_Fast(v, "can only assign an iterable"); in list_ass_slice_lock_held()
1295 PyObject *seq = PySequence_Fast(iterable, "argument must be iterable"); in list_extend_lock_held()
3723 seq = PySequence_Fast(value, in list_ass_subscript()
/external/pytorch/torch/csrc/profiler/python/
Dinit.cpp231 PySequence_Fast(self->input_values, "input must be a sequence")); in RecordFunctionFast_enter()
/external/tensorflow/tensorflow/python/lib/core/
Dpy_seq_tensor.cc253 Safe_PyObjectPtr seq = make_safe(PySequence_Fast(obj, "")); in Helper()
/external/rust/android-crates-io/crates/grpcio-sys/grpc/third_party/upb/python/
Drepeated.c360 PySequence_Fast(value, "must assign iterable to extended slice"); in PyUpb_RepeatedContainer_SetSubscript()
/external/python/cpython3/PC/
Dpython3dll.c542 EXPORT_FUNC(PySequence_Fast)
/external/python/cpython3/Doc/data/
Dstable_abi.dat576 func,PySequence_Fast,3.2,,

12