Home
last modified time | relevance | path

Searched refs:PyBUF_STRIDES (Results 1 – 9 of 9) sorted by relevance

/external/python/cpython3/Include/
Dpybuffer.h118 #define PyBUF_STRIDES (0x0010 | PyBUF_ND) macro
119 #define PyBUF_C_CONTIGUOUS (0x0020 | PyBUF_STRIDES)
120 #define PyBUF_F_CONTIGUOUS (0x0040 | PyBUF_STRIDES)
121 #define PyBUF_ANY_CONTIGUOUS (0x0080 | PyBUF_STRIDES)
122 #define PyBUF_INDIRECT (0x0100 | PyBUF_STRIDES)
127 #define PyBUF_STRIDED (PyBUF_STRIDES | PyBUF_WRITABLE)
128 #define PyBUF_STRIDED_RO (PyBUF_STRIDES)
130 #define PyBUF_RECORDS (PyBUF_STRIDES | PyBUF_WRITABLE | PyBUF_FORMAT)
131 #define PyBUF_RECORDS_RO (PyBUF_STRIDES | PyBUF_FORMAT)
/external/tensorflow/tensorflow/compiler/xla/python/
Dpy_buffer.cc410 (flags & PyBUF_STRIDES) == PyBUF_ND) && in PyBuffer_bf_getbuffer()
442 if ((flags & PyBUF_STRIDES) == PyBUF_STRIDES) { in PyBuffer_bf_getbuffer()
/external/python/cpython3/Modules/
D_testbuffer.c75 #define REQ_STRIDES(flags) ((flags&PyBUF_STRIDES) == PyBUF_STRIDES)
2875 ADD_INT_MACRO(mod, PyBUF_STRIDES); in _testbuffer_exec()
Darraymodule.c2658 if ((flags & PyBUF_STRIDES)==PyBUF_STRIDES) in array_buffer_getbuf()
/external/python/cpython3/Lib/test/
Dtest_buffer.py997 (not match(req, PyBUF_STRIDES) and not ex.c_contiguous) or
1024 strides = orig_ex.strides if match(req, PyBUF_STRIDES) else ()
1036 PyBUF_INDIRECT, PyBUF_STRIDES, PyBUF_ND, PyBUF_SIMPLE,
1120 self.assertRaises(BufferError, ndarray, ex, getbuf=PyBUF_STRIDES)
2140 PyBUF_INDIRECT, PyBUF_STRIDES, PyBUF_ND, PyBUF_SIMPLE,
2196 for request in [PyBUF_STRIDES, PyBUF_FULL]:
2313 PyBUF_STRIDES, PyBUF_ND]:
2335 PyBUF_STRIDES, PyBUF_ND]:
/external/python/cpython3/Objects/
Dabstract.c796 if ((flags & PyBUF_STRIDES) == PyBUF_STRIDES) in PyBuffer_FillInfo()
Dmemoryobject.c248 #define REQ_STRIDES(flags) ((flags&PyBUF_STRIDES) == PyBUF_STRIDES)
/external/python/cpython3/Doc/c-api/
Dbuffer.rst287 | .. c:macro:: PyBUF_STRIDES | yes | yes | NULL |
/external/python/cpython3/Misc/
Dstable_abi.toml2309 [const.PyBUF_STRIDES]