Home
last modified time | relevance | path

Searched refs:tp_itemsize (Results 1 – 25 of 27) sorted by relevance

12

/external/python/cpython3/Doc/includes/newtypes/
Dcustom.c14 .tp_itemsize = 0,
Dsublist.c36 .tp_itemsize = 0,
Dcustom2.c97 .tp_itemsize = 0,
Dcustom3.c137 .tp_itemsize = 0,
Dcustom4.c153 .tp_itemsize = 0,
/external/python/cpython3/Include/cpython/
Dobjimpl.h25 size += _Py_STATIC_CAST(size_t, nitems) * _Py_STATIC_CAST(size_t, type->tp_itemsize); in _PyObject_VAR_SIZE()
Dobject.h150 Py_ssize_t tp_basicsize, tp_itemsize; /* For allocation */ member
/external/python/cpython3/Doc/includes/
Dtypestruct.h4 Py_ssize_t tp_basicsize, tp_itemsize; /* For allocation */ member
/external/python/cpython3/Doc/c-api/
Dallocation.rst46 given by the :c:member:`~PyTypeObject.tp_itemsize` field of
Dtype.rst423 Used to set :c:member:`PyTypeObject.tp_itemsize`.
424 See ``tp_itemsize`` documentation for caveats.
426 If zero, :c:member:`~PyTypeObject.tp_itemsize` is inherited.
434 :c:member:`~PyTypeObject.tp_itemsize`).
Dtypeobj.rst48 …| :c:member:`~PyTypeObject.tp_itemsize` | :c:type:`Py_ssize_t` | …
490 metatype) initializes :c:member:`~PyTypeObject.tp_itemsize`, which means that its instances (i.e.
582 :c:member:`~PyTypeObject.tp_itemsize`).
590 Py_ssize_t PyTypeObject.tp_itemsize
595 :c:member:`~PyTypeObject.tp_itemsize` field, types with variable-length instances have a non-zero
596 :c:member:`~PyTypeObject.tp_itemsize` field. For a type with fixed-length instances, all
601 times :c:member:`~PyTypeObject.tp_itemsize`, where N is the "length" of the object. The value of
620 suppose a type implements an array of ``double``. :c:member:`~PyTypeObject.tp_itemsize` is
630 non-zero :c:member:`~PyTypeObject.tp_itemsize`, it is generally not safe to set
631 :c:member:`~PyTypeObject.tp_itemsize` to a different non-zero value in a subtype (though this
[all …]
Dgcsupport.rst80 :c:type:`PyVarObject` and :c:member:`~PyTypeObject.tp_itemsize`
/external/python/cpython3/Python/
Doptimizer.c124 .tp_itemsize = 0,
429 .tp_itemsize = 1,
1333 .tp_itemsize = 0,
1361 .tp_itemsize = 1,
1420 .tp_itemsize = 0,
Dhamt.c2539 .tp_itemsize = 0, \
/external/tensorflow/tensorflow/python/util/
Dfast_module_type.cc237 obj.tp_itemsize = 0; in __anonb42701910102()
/external/python/cpython3/Objects/
Dtypeobject.c1188 {"__itemsize__", Py_T_PYSSIZET, offsetof(PyTypeObject, tp_itemsize), Py_READONLY},
2012 assert(type->tp_itemsize == 0); in _PyType_NewManagedObject()
2034 assert(type->tp_itemsize == 0); in _PyType_AllocNoTrack()
2051 if (type->tp_itemsize == 0) { in _PyType_AllocNoTrack()
3181 t1->tp_itemsize != t2->tp_itemsize in shape_differs()
3628 if (ctx->nslot > 0 && ctx->base->tp_itemsize != 0) { in type_new_slots_impl()
3662 && ctx->base->tp_itemsize == 0); in type_new_slots()
3939 type->tp_itemsize = ctx->base->tp_itemsize; in type_new_descriptors()
4659 if (base->tp_itemsize in _PyType_FromMetaclass_impl()
4719 type->tp_itemsize = itemsize; in _PyType_FromMetaclass_impl()
[all …]
Dstructseq.c587 type->tp_itemsize = sizeof(PyObject *); in initialize_static_fields()
Dlongobject.c6167 return Py_TYPE(self)->tp_basicsize + Py_TYPE(self)->tp_itemsize * ndigits; in int___sizeof___impl()
/external/python/cpython3/Modules/_testcapi/
Dmonitoring.c101 .tp_itemsize = 0,
/external/python/watchdog/src/
Dwatchdog_fsevents.c239 .tp_itemsize = 0,
/external/python/cpython3/Doc/extending/
Dnewtypes_tutorial.rst95 .tp_itemsize = 0,
136 .tp_itemsize = 0,
139 new :class:`!Custom` instances. :c:member:`~PyTypeObject.tp_itemsize` is
Dnewtypes.rst37 Py_ssize_t tp_basicsize, tp_itemsize; /* For allocation */
41 structures (think: strings, tuples) which is where the :c:member:`~PyTypeObject.tp_itemsize` field
/external/tensorflow/tensorflow/python/eager/
Dpywrap_tensor.cc1042 if (base_class_type->tp_itemsize != 0) { in TFE_Py_InitEagerTensor()
/external/pytorch/torch/csrc/dynamo/
Dguards.cpp3562 TensorGuardsType.tp_itemsize = 0; in torch_c_dynamo_guards_init()
3575 GlobalStateGuardType.tp_itemsize = 0; in torch_c_dynamo_guards_init()
/external/python/cpython3/Modules/_ctypes/
D_ctypes.c533 size += Py_TYPE(self)->tp_itemsize * Py_SIZE(self); in _ctypes_CType_Type___sizeof___impl()

12