Home
last modified time | relevance | path

Searched refs:PyErr_Format (Results 1 – 25 of 265) sorted by relevance

1234567891011

/external/tensorflow/tensorflow/lite/python/optimize/
Dcalibration_wrapper.cc126 PyErr_Format(PyExc_ValueError, in RegisterCustomOpByName()
144 PyErr_Format(PyExc_ValueError, in ConvertInputShapeToVector()
173 PyErr_Format(PyExc_ValueError, "Invalid model"); in AddIntermediateTensors()
224 PyErr_Format(PyExc_ValueError, "Invalid signature key: %s", in Prepare()
237 PyErr_Format(PyExc_ValueError, in Prepare()
244 PyErr_Format(PyExc_ValueError, "Invalid signature key: %s", in Prepare()
252 PyErr_Format(PyExc_ValueError, in Prepare()
266 PyErr_Format(PyExc_ValueError, "Failed to resize %ld input tensor.", i); in Prepare()
277 PyErr_Format(PyExc_ValueError, in Prepare()
284 PyErr_Format(PyExc_ValueError, in Prepare()
[all …]
/external/tensorflow/tensorflow/compiler/mlir/quantization/tensorflow/python/
Dquantize_model_wrapper.cc53 PyErr_Format( in SerializeGraphDefToPyBytes()
76 PyErr_Format(PyExc_ValueError, "Failed to quantize QAT model: %s", in QuantizeQatModel()
91 PyErr_Format(PyExc_ValueError, in QuantizePtqDynamicRange()
108 PyErr_Format(PyExc_ValueError, in QuantizePtqModelPreCalibration()
125 PyErr_Format( in QuantizePtqModelPostCalibration()
147 PyErr_Format(PyExc_ValueError, "No calibrated data for '%s'", in GetMinFromCalibrator()
159 PyErr_Format(PyExc_ValueError, "No calibrated data for '%s'", in GetMaxFromCalibrator()
/external/python/cpython3/Modules/clinic/
Dfcntlmodule.c.h36 PyErr_Format(PyExc_TypeError, "fcntl expected at least 2 arguments, got %zd", nargs); in fcntl_fcntl()
40 PyErr_Format(PyExc_TypeError, "fcntl expected at most 3 arguments, got %zd", nargs); in fcntl_fcntl()
112 PyErr_Format(PyExc_TypeError, "ioctl expected at least 2 arguments, got %zd", nargs); in fcntl_ioctl()
116 PyErr_Format(PyExc_TypeError, "ioctl expected at most 4 arguments, got %zd", nargs); in fcntl_ioctl()
168 PyErr_Format(PyExc_TypeError, "flock expected 2 arguments, got %zd", nargs); in fcntl_flock()
230 PyErr_Format(PyExc_TypeError, "lockf expected at least 2 arguments, got %zd", nargs); in fcntl_lockf()
234 PyErr_Format(PyExc_TypeError, "lockf expected at most 5 arguments, got %zd", nargs); in fcntl_lockf()
Dtermios.c.h68 PyErr_Format(PyExc_TypeError, "tcsetattr expected 3 arguments, got %zd", nargs); in termios_tcsetattr()
109 PyErr_Format(PyExc_TypeError, "tcsendbreak expected 2 arguments, got %zd", nargs); in termios_tcsendbreak()
178 PyErr_Format(PyExc_TypeError, "tcflush expected 2 arguments, got %zd", nargs); in termios_tcflush()
219 PyErr_Format(PyExc_TypeError, "tcflow expected 2 arguments, got %zd", nargs); in termios_tcflow()
289 PyErr_Format(PyExc_TypeError, "tcsetwinsize expected 2 arguments, got %zd", nargs); in termios_tcsetwinsize()
/external/python/cpython3/Objects/
Dmoduleobject.c221 PyErr_Format( in _PyModule_CreateInitialized()
291 PyErr_Format( in PyModule_FromDefAndSpec2()
302 PyErr_Format( in PyModule_FromDefAndSpec2()
315 PyErr_Format( in PyModule_FromDefAndSpec2()
326 PyErr_Format( in PyModule_FromDefAndSpec2()
337 PyErr_Format( in PyModule_FromDefAndSpec2()
369 PyErr_Format( in PyModule_FromDefAndSpec2()
401 PyErr_Format( in PyModule_FromDefAndSpec2()
408 PyErr_Format( in PyModule_FromDefAndSpec2()
492 PyErr_Format( in PyModule_ExecDef()
[all …]
Ddescrobject.c82 PyErr_Format(PyExc_TypeError, in descr_check()
103 PyErr_Format(PyExc_TypeError, in classmethod_get()
112 PyErr_Format(PyExc_TypeError, in classmethod_get()
121 PyErr_Format(PyExc_TypeError, in classmethod_get()
150 PyErr_Format(PyExc_TypeError, in method_get()
195 PyErr_Format(PyExc_AttributeError, in getset_get()
220 PyErr_Format(PyExc_TypeError, in descr_setcheck()
253 PyErr_Format(PyExc_AttributeError, in getset_set()
272 PyErr_Format(PyExc_TypeError, in method_check_args()
285 PyErr_Format(PyExc_TypeError, in method_check_args()
[all …]
/external/rust/android-crates-io/crates/grpcio-sys/grpc/third_party/upb/python/
Dconvert.c76 PyErr_Format(PyExc_SystemError, in PyUpb_UpbToPy()
95 PyErr_Format(PyExc_ValueError, "Value out of range: %S", obj); in PyUpb_GetInt64()
112 PyErr_Format(PyExc_ValueError, "Value out of range: %S", obj); in PyUpb_GetUint64()
123 PyErr_Format(PyExc_ValueError, "Value out of range: %S", obj); in PyUpb_GetInt32()
134 PyErr_Format(PyExc_ValueError, "Value out of range: %S", obj); in PyUpb_GetUint32()
193 PyErr_Format(PyExc_ValueError, "unknown enum label \"%s\"", name); in PyUpb_PyToUpbEnum()
203 PyErr_Format(PyExc_ValueError, "invalid enumerator %d", (int)i32); in PyUpb_PyToUpbEnum()
216 PyErr_Format(PyExc_TypeError, in PyUpb_IsNumpyNdarray()
275 PyErr_Format(PyExc_ValueError, "Message objects may not be assigned"); in PyUpb_PyToUpb()
278 PyErr_Format(PyExc_SystemError, in PyUpb_PyToUpb()
Ddescriptor_pool.c236 PyErr_Format(PyExc_TypeError, in PyUpb_DescriptorPool_DoAddSerializedFile()
256 return PyErr_Format(PyExc_TypeError, "Can only add FileDescriptorProto"); in PyUpb_DescriptorPool_DoAdd()
322 return PyErr_Format(PyExc_KeyError, "Couldn't find file %.200s", name); in PyUpb_DescriptorPool_FindFileByName()
348 return PyErr_Format(PyExc_KeyError, "Couldn't find extension %.200s", name); in PyUpb_DescriptorPool_FindExtensionByName()
373 return PyErr_Format(PyExc_KeyError, "Couldn't find message %.200s", name); in PyUpb_DescriptorPool_FindMessageTypeByName()
420 return PyErr_Format(PyExc_KeyError, "Couldn't find message %.200s", name); in PyUpb_DescriptorPool_FindFieldByName()
445 return PyErr_Format(PyExc_KeyError, "Couldn't find enum %.200s", name); in PyUpb_DescriptorPool_FindEnumTypeByName()
481 return PyErr_Format(PyExc_KeyError, "Couldn't find oneof %.200s", name); in PyUpb_DescriptorPool_FindOneofByName()
497 return PyErr_Format(PyExc_KeyError, "Couldn't find service %.200s", name); in PyUpb_DescriptorPool_FindServiceByName()
526 return PyErr_Format(PyExc_KeyError, "Couldn't find method %.200s", name); in PyUpb_DescriptorPool_FindMethodByName()
[all …]
/external/python/cpython3/Python/
Dgetargs.c303 PyErr_Format(PyExc_TypeError, in vgetargs1_impl()
311 PyErr_Format(PyExc_TypeError, in vgetargs1_impl()
333 PyErr_Format(PyExc_TypeError, in vgetargs1_impl()
362 PyErr_Format(PyExc_SystemError, in vgetargs1_impl()
569 PyErr_Format(PyExc_TypeError, in _PyArg_BadArgument()
1063 PyErr_Format(PyExc_ValueError, in convertsimple()
1437 PyErr_Format(PyExc_TypeError, in error_unexpected_keyword_arg()
1447 PyErr_Format(PyExc_TypeError, in error_unexpected_keyword_arg()
1460 PyErr_Format(PyExc_TypeError, in error_unexpected_keyword_arg()
1549 PyErr_Format(PyExc_TypeError, in vgetargskeywords()
[all …]
Dconfig_common.h24 PyErr_Format(PyExc_ValueError, "missing config key: %s", name); in config_dict_get()
35 PyErr_Format(PyExc_TypeError, "invalid config type: %s", name); in config_dict_invalid_type()
/external/tensorflow/tensorflow/lite/toco/python/
Dtoco_python_api.cc303 PyErr_Format(PyExc_ValueError, "Failed to convert input PyObject"); in MlirQuantizeModel()
310 PyErr_Format(PyExc_ValueError, "Failed to convert op denylist PyObject"); in MlirQuantizeModel()
314 PyErr_Format(PyExc_ValueError, "Failed to convert node denylist PyObject"); in MlirQuantizeModel()
322 PyErr_Format(PyExc_ValueError, "Invalid model"); in MlirQuantizeModel()
358 PyErr_Format(PyExc_ValueError, "Failed to convert input PyObject"); in MlirSparsifyModel()
365 PyErr_Format(PyExc_ValueError, "Invalid model"); in MlirSparsifyModel()
397 PyErr_Format(PyExc_ValueError, in RegisterCustomOpdefs()
407 PyErr_Format( in RegisterCustomOpdefs()
437 PyErr_Format(PyExc_ValueError, in RegisterCustomOpdefs()
/external/cronet/stable/third_party/protobuf/python/google/protobuf/pyext/
Dunknown_field_set.cc54 PyErr_Format(PyExc_ValueError, "UnknownFieldSet does not exist. "); in Len()
65 PyErr_Format(PyExc_ValueError, "UnknownFieldSet does not exist. "); in Item()
73 PyErr_Format(PyExc_IndexError, "index (%zd) out of range", index); in Item()
94 PyErr_Format(PyExc_TypeError, in New()
219 PyErr_Format(PyExc_ValueError, "UnknownField does not exist. "); in GetUnknownField()
224 PyErr_Format(PyExc_ValueError, "UnknownField does not exist. "); in GetUnknownField()
Ddescriptor_pool.cc231 PyErr_Format(PyExc_KeyError, "Couldn't build file for %s %.200s\n%s", in SetErrorFromCollector()
236 PyErr_Format(PyExc_KeyError, "Couldn't find %s %.200s", error_type, name); in SetErrorFromCollector()
446 PyErr_Format(PyExc_KeyError, "Couldn't build file for Extension %.d\n%s", in FindExtensionByNumber()
451 PyErr_Format(PyExc_KeyError, "Couldn't find Extension %d", number); in FindExtensionByNumber()
501 PyErr_Format(PyExc_ValueError, in AddFileDescriptor()
518 PyErr_Format(PyExc_ValueError, in AddDescriptor()
535 PyErr_Format(PyExc_ValueError, in AddEnumDescriptor()
552 PyErr_Format(PyExc_ValueError, in AddExtensionDescriptor()
569 PyErr_Format(PyExc_ValueError, in AddServiceDescriptor()
624 PyErr_Format(PyExc_TypeError, in AddSerializedFile()
Dunknown_fields.cc54 PyErr_Format(PyExc_ValueError, in Len()
79 PyErr_Format(PyExc_ValueError, in Item()
89 PyErr_Format(PyExc_IndexError, in Item()
222 PyErr_Format(PyExc_ValueError, in GetUnknownField()
229 PyErr_Format(PyExc_ValueError, in GetUnknownField()
/external/protobuf/python/google/protobuf/pyext/
Dunknown_field_set.cc54 PyErr_Format(PyExc_ValueError, "UnknownFieldSet does not exist. "); in Len()
65 PyErr_Format(PyExc_ValueError, "UnknownFieldSet does not exist. "); in Item()
73 PyErr_Format(PyExc_IndexError, "index (%zd) out of range", index); in Item()
94 PyErr_Format(PyExc_TypeError, in New()
219 PyErr_Format(PyExc_ValueError, "UnknownField does not exist. "); in GetUnknownField()
224 PyErr_Format(PyExc_ValueError, "UnknownField does not exist. "); in GetUnknownField()
Ddescriptor_pool.cc231 PyErr_Format(PyExc_KeyError, "Couldn't build file for %s %.200s\n%s", in SetErrorFromCollector()
236 PyErr_Format(PyExc_KeyError, "Couldn't find %s %.200s", error_type, name); in SetErrorFromCollector()
446 PyErr_Format(PyExc_KeyError, "Couldn't build file for Extension %.d\n%s", in FindExtensionByNumber()
451 PyErr_Format(PyExc_KeyError, "Couldn't find Extension %d", number); in FindExtensionByNumber()
501 PyErr_Format(PyExc_ValueError, in AddFileDescriptor()
518 PyErr_Format(PyExc_ValueError, in AddDescriptor()
535 PyErr_Format(PyExc_ValueError, in AddEnumDescriptor()
552 PyErr_Format(PyExc_ValueError, in AddExtensionDescriptor()
569 PyErr_Format(PyExc_ValueError, in AddServiceDescriptor()
624 PyErr_Format(PyExc_TypeError, in AddSerializedFile()
Dunknown_fields.cc54 PyErr_Format(PyExc_ValueError, in Len()
79 PyErr_Format(PyExc_ValueError, in Item()
89 PyErr_Format(PyExc_IndexError, in Item()
222 PyErr_Format(PyExc_ValueError, in GetUnknownField()
229 PyErr_Format(PyExc_ValueError, in GetUnknownField()
Dmap_container.cc162 PyErr_Format( in PythonToMapKey()
187 PyErr_Format( in MapKeyToPython()
219 PyErr_Format( in MapValueRefToPython()
290 PyErr_Format(PyExc_ValueError, "Unknown enum value: %d", value); in PythonToMapValueRef()
297 PyErr_Format( in PythonToMapValueRef()
386 PyErr_Format(PyExc_RuntimeError, in NewScalarMapContainer()
454 PyErr_Format(PyExc_KeyError, "Key not present in map"); in ScalarMapSetItem()
608 PyErr_Format(PyExc_ValueError, in MessageMapSetItem()
649 PyErr_Format(PyExc_KeyError, "Key not present in map"); in MessageMapSetItem()
792 return PyErr_Format(PyExc_KeyError, "Could not allocate iterator"); in GetIterator()
[all …]
/external/cronet/tot/third_party/protobuf/python/google/protobuf/pyext/
Dunknown_field_set.cc54 PyErr_Format(PyExc_ValueError, "UnknownFieldSet does not exist. "); in Len()
65 PyErr_Format(PyExc_ValueError, "UnknownFieldSet does not exist. "); in Item()
73 PyErr_Format(PyExc_IndexError, "index (%zd) out of range", index); in Item()
94 PyErr_Format(PyExc_TypeError, in New()
219 PyErr_Format(PyExc_ValueError, "UnknownField does not exist. "); in GetUnknownField()
224 PyErr_Format(PyExc_ValueError, "UnknownField does not exist. "); in GetUnknownField()
Ddescriptor_pool.cc231 PyErr_Format(PyExc_KeyError, "Couldn't build file for %s %.200s\n%s", in SetErrorFromCollector()
236 PyErr_Format(PyExc_KeyError, "Couldn't find %s %.200s", error_type, name); in SetErrorFromCollector()
446 PyErr_Format(PyExc_KeyError, "Couldn't build file for Extension %.d\n%s", in FindExtensionByNumber()
451 PyErr_Format(PyExc_KeyError, "Couldn't find Extension %d", number); in FindExtensionByNumber()
501 PyErr_Format(PyExc_ValueError, in AddFileDescriptor()
518 PyErr_Format(PyExc_ValueError, in AddDescriptor()
535 PyErr_Format(PyExc_ValueError, in AddEnumDescriptor()
552 PyErr_Format(PyExc_ValueError, in AddExtensionDescriptor()
569 PyErr_Format(PyExc_ValueError, in AddServiceDescriptor()
624 PyErr_Format(PyExc_TypeError, in AddSerializedFile()
Dunknown_fields.cc54 PyErr_Format(PyExc_ValueError, in Len()
79 PyErr_Format(PyExc_ValueError, in Item()
89 PyErr_Format(PyExc_IndexError, in Item()
222 PyErr_Format(PyExc_ValueError, in GetUnknownField()
229 PyErr_Format(PyExc_ValueError, in GetUnknownField()
Dmap_container.cc162 PyErr_Format( in PythonToMapKey()
187 PyErr_Format( in MapKeyToPython()
219 PyErr_Format( in MapValueRefToPython()
290 PyErr_Format(PyExc_ValueError, "Unknown enum value: %d", value); in PythonToMapValueRef()
297 PyErr_Format( in PythonToMapValueRef()
386 PyErr_Format(PyExc_RuntimeError, in NewScalarMapContainer()
454 PyErr_Format(PyExc_KeyError, "Key not present in map"); in ScalarMapSetItem()
608 PyErr_Format(PyExc_ValueError, in MessageMapSetItem()
649 PyErr_Format(PyExc_KeyError, "Key not present in map"); in MessageMapSetItem()
792 return PyErr_Format(PyExc_KeyError, "Could not allocate iterator"); in GetIterator()
[all …]
/external/python/cpython3/Modules/
D_csv.c230 PyErr_Format(PyExc_TypeError, in _set_int()
253 PyErr_Format(PyExc_TypeError, in _set_char_or_none()
263 PyErr_Format(PyExc_TypeError, in _set_char_or_none()
282 PyErr_Format(PyExc_TypeError, in _set_char()
292 PyErr_Format(PyExc_TypeError, in _set_char()
311 PyErr_Format(PyExc_TypeError, in _set_str()
331 PyErr_Format(PyExc_TypeError, "bad \"quoting\" value"); in dialect_check_quoting()
339 PyErr_Format(PyExc_ValueError, "bad %s value", name); in dialect_check_char()
346 PyErr_Format(PyExc_ValueError, "bad %s or lineterminator value", name); in dialect_check_char()
356 PyErr_Format(PyExc_ValueError, "bad %s or %s value", name1, name2); in dialect_check_chars()
[all …]
/external/tensorflow/tensorflow/lite/python/interpreter_wrapper/
Dinterpreter_wrapper.cc51 PyErr_Format(PyExc_ValueError, \
59 PyErr_Format(PyExc_ValueError, \
67 PyErr_Format(PyExc_ValueError, \
75 PyErr_Format(PyExc_ValueError, "Invalid node index"); \
326 PyErr_Format(PyExc_ValueError, "Shape should be 1D instead of %d.", in ResizeInputTensorImpl()
332 PyErr_Format(PyExc_ValueError, "Shape must be type int32 (was %d).", in ResizeInputTensorImpl()
389 PyErr_Format(PyExc_ValueError, "Tensor with no type found."); in TensorType()
395 PyErr_Format(PyExc_ValueError, "Invalid tflite type code %d", code); in TensorType()
407 PyErr_Format(PyExc_ValueError, "Tensor with no shape found."); in TensorSize()
506 PyErr_Format(PyExc_ValueError, in SetTensor()
[all …]
/external/python/cpython3/Modules/_io/
Dstringio.c417 PyErr_Format(PyExc_OSError, in stringio_iternext()
458 PyErr_Format(PyExc_ValueError, in _io_StringIO_truncate_impl()
497 PyErr_Format(PyExc_ValueError, in _io_StringIO_seek_impl()
502 PyErr_Format(PyExc_ValueError, in _io_StringIO_seek_impl()
547 PyErr_Format(PyExc_TypeError, "string argument expected, got '%s'", in _io_StringIO_write_impl()
675 PyErr_Format(PyExc_TypeError, in _io_StringIO___init___impl()
689 PyErr_Format(PyExc_ValueError, in _io_StringIO___init___impl()
694 PyErr_Format(PyExc_TypeError, in _io_StringIO___init___impl()
888 PyErr_Format(PyExc_TypeError, in _io_StringIO___setstate___impl()
937 PyErr_Format(PyExc_TypeError, in _io_StringIO___setstate___impl()
[all …]

1234567891011