Home
last modified time | relevance | path

Searched refs:PyBUF_ND (Results 1 – 11 of 11) sorted by relevance

/external/python/cpython3/Include/cpython/
Dobject.h86 #define PyBUF_ND 0x0008 macro
87 #define PyBUF_STRIDES (0x0010 | PyBUF_ND)
93 #define PyBUF_CONTIG (PyBUF_ND | PyBUF_WRITABLE)
94 #define PyBUF_CONTIG_RO (PyBUF_ND)
/external/tensorflow/tensorflow/compiler/xla/python/
Dpy_buffer.cc257 (flags & PyBUF_STRIDES) == PyBUF_ND) && in PjRtBufferGetBuffer()
282 if ((flags & PyBUF_ND) == PyBUF_ND) { in PjRtBufferGetBuffer()
/external/python/cpython2/Include/
Dobject.h190 #define PyBUF_ND 0x0008 macro
191 #define PyBUF_STRIDES (0x0010 | PyBUF_ND)
197 #define PyBUF_CONTIG (PyBUF_ND | PyBUF_WRITABLE)
198 #define PyBUF_CONTIG_RO (PyBUF_ND)
/external/python/cpython2/Doc/c-api/
Dbuffer.rst186 | :c:macro:`PyBUF_STRIDES` | This implies :c:macro:`PyBUF_ND`. The returned |
196 | :c:macro:`PyBUF_ND` | The returned buffer must provide shape |
254 | :c:macro:`PyBUF_CONTIG` | This is equivalent to ``(PyBUF_ND | |
257 | :c:macro:`PyBUF_CONTIG_RO` | This is equivalent to ``(PyBUF_ND)``. |
/external/python/cpython3/Lib/test/
Dtest_buffer.py988 (not match(req, PyBUF_ND) and match(req, PyBUF_FORMAT))):
1010 if not match(req, PyBUF_ND):
1012 shape = orig_ex.shape if match(req, PyBUF_ND) else ()
1024 PyBUF_INDIRECT, PyBUF_STRIDES, PyBUF_ND, PyBUF_SIMPLE,
1107 self.assertRaises(BufferError, ndarray, ex, getbuf=PyBUF_ND)
1624 xr = ndarray(ex, getbuf=PyBUF_ND)
2067 nd = ndarray(ex, getbuf=PyBUF_ND|PyBUF_FORMAT)
2128 PyBUF_INDIRECT, PyBUF_STRIDES, PyBUF_ND, PyBUF_SIMPLE,
2301 PyBUF_STRIDES, PyBUF_ND]:
2323 PyBUF_STRIDES, PyBUF_ND]:
/external/python/cpython3/Modules/
D_testbuffer.c79 #define REQ_SHAPE(flags) ((flags&PyBUF_ND) == PyBUF_ND)
2872 PyModule_AddIntMacro(m, PyBUF_ND); in PyInit__testbuffer()
Darraymodule.c2545 if ((flags & PyBUF_ND)==PyBUF_ND) { in array_buffer_getbuf()
/external/python/cpython3/Doc/c-api/
Dbuffer.rst278 | .. c:macro:: PyBUF_ND | yes | NULL | NULL |
304 | :c:macro:`PyBUF_ND` | yes | NULL | NULL | C |
/external/python/cpython3/Objects/
Dabstract.c734 if ((flags & PyBUF_ND) == PyBUF_ND) in PyBuffer_FillInfo()
Dmemoryobject.c236 #define REQ_SHAPE(flags) ((flags&PyBUF_ND) == PyBUF_ND)
/external/python/cpython2/Objects/
Dabstract.c703 if ((flags & PyBUF_ND) == PyBUF_ND) in PyBuffer_FillInfo()