Home
last modified time | relevance | path

Searched refs:strides (Results 1 - 25 of 114) sorted by relevance

12345

/third_party/python/Modules/
H A D_testbuffer.c48 /* Default: NumPy style (strides), read-only, no var-export, C-style layout */
156 base->strides = NULL; in ndbuf_new()
171 PyMem_XFree(base->strides); in ndbuf_free()
229 PyMem_XFree(base->strides); in ndarray_dealloc()
551 dest->strides[dest->ndim-1] != dest->itemsize || in copy_buffer()
552 src->strides[src->ndim-1] != src->itemsize) { in copy_buffer()
561 dest->buf, dest->strides, dest->suboffsets, in copy_buffer()
562 src->buf, src->strides, src->suboffsets, in copy_buffer()
611 const Py_ssize_t *shape, const Py_ssize_t *strides, in unpack_rec()
619 assert(strides ! in unpack_rec()
610 unpack_rec(PyObject *unpack_from, char *ptr, PyObject *mview, char *item, const Py_ssize_t *shape, const Py_ssize_t *strides, const Py_ssize_t *suboffsets, Py_ssize_t ndim, Py_ssize_t itemsize) unpack_rec() argument
664 Py_ssize_t *strides = base->strides; ndarray_as_list() local
929 verify_structure(Py_ssize_t len, Py_ssize_t itemsize, Py_ssize_t offset, const Py_ssize_t *shape, const Py_ssize_t *strides, Py_ssize_t ndim) verify_structure() argument
1120 init_structure(ndbuf_t *ndbuf, PyObject *shape, PyObject *strides, Py_ssize_t ndim) init_structure() argument
1177 init_ndbuf(PyObject *items, PyObject *shape, PyObject *strides, Py_ssize_t offset, PyObject *format, int flags) init_ndbuf() argument
1264 ndarray_push_base(NDArrayObject *nd, PyObject *items, PyObject *shape, PyObject *strides, Py_ssize_t offset, PyObject *format, int flags) ndarray_push_base() argument
1288 PyObject *strides = NULL; /* number of bytes to the next elt in each dim */ ndarray_init() local
1354 PyObject *strides = NULL; /* number of bytes to the next elt in each dim */ ndarray_push() local
1743 Py_ssize_t *shape = NULL, *strides = NULL, *suboffsets = NULL; copy_structure() local
2239 static Py_ssize_t strides[ND_MAX_NDIM]; ndarray_memoryview_from_buffer() local
[all...]
/third_party/vk-gl-cts/modules/gles2/stress/
H A Des2sVertexArrayTests.cpp75 int strides[] = {17}; in init() local
82 for (int strideNdx = 0; strideNdx < DE_LENGTH_OF_ARRAY(strides); strideNdx++) in init()
87 const int stride = (strides[strideNdx] < 0 ? Array::inputTypeSize(inputTypes[inputTypeNdx]) * componentCount : strides[strideNdx]); in init()
130 : TestCaseGroup(context, "strides", "Single stride vertex atribute") in SingleVertexArrayStrideTests()
140 // Test strides with different input types, component counts and storage, Usage(?) in init()
144 int strides[] = {17}; in init() local
154 for (int strideNdx = 0; strideNdx < DE_LENGTH_OF_ARRAY(strides); strideNdx++) in init()
156 const int stride = (strides[strideNdx] < 0 ? Array::inputTypeSize(inputTypes[inputTypeNdx]) * componentCount : strides[strideNd in init()
215 int strides[] = {/*0,*/ -1, 17, 32}; // Tread negative value as sizeof input. Same as 0, but done outside of GL. init() local
285 int strides[] = {/*0,*/ -1, 17, 32}; // Tread negative value as sizeof input. Same as 0, but done outside of GL. init() local
[all...]
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/compute/
H A DvktComputeCooperativeMatrixTests.cpp295 "// strides overriden by spec constants\n" in initPrograms()
402 string strides[4]; in initPrograms() local
405 strides[i] = (m_data.colMajor ? dims[i].rows : dims[i].cols) + string(" * ") + de::toString(m_data.subgroupsPerWorkgroupX * m_data.workgroupsX); in initPrograms()
410 css << " uint element0 = " << strides[0] << " * " << (m_data.colMajor ? dims[0].cols : dims[0].rows) << " * matrixID.y + " << (m_data.colMajor ? dims[0].rows : dims[0].cols) << " * matrixID.x;\n" in initPrograms()
411 " uint element1 = " << strides[1] << " * " << (m_data.colMajor ? dims[1].cols : dims[1].rows) << " * matrixID.y + " << (m_data.colMajor ? dims[1].rows : dims[1].cols) << " * matrixID.x;\n" in initPrograms()
412 " uint element2 = " << strides[2] << " * " << (m_data.colMajor ? dims[2].cols : dims[2].rows) << " * matrixID.y + " << (m_data.colMajor ? dims[2].rows : dims[2].cols) << " * matrixID.x;\n" in initPrograms()
413 " uint element3 = " << strides[3] << " * " << (m_data.colMajor ? dims[3].cols : dims[3].rows) << " * matrixID.y + " << (m_data.colMajor ? dims[3].rows : dims[3].cols) << " * matrixID.x;\n" in initPrograms()
434 string sharedStride = strides[m] + " / workgroupsX"; in initPrograms()
441 string sharedStride = strides[m] + " / workgroupsX"; in initPrograms()
444 " int localElementInput = " << strides[ in initPrograms()
786 deUint32 strides[4]; // in elements iterate() local
[all...]
/third_party/vk-gl-cts/modules/gles3/stress/
H A Des3sVertexArrayTests.cpp77 int strides[] = {0, -1, 17, 32}; // Tread negative value as sizeof input. Same as 0, but done outside of GL. in init() local
84 for (int strideNdx = 0; strideNdx < DE_LENGTH_OF_ARRAY(strides); strideNdx++) in init()
86 const int stride = (strides[strideNdx] < 0 ? Array::inputTypeSize(inputTypes[inputTypeNdx]) * 2 : strides[strideNdx]); in init()
175 int strides[] = {/*0,*/ -1, 17, 32}; // Tread negative value as sizeof input. Same as 0, but done outside of GL. in init() local
183 for (int strideNdx = 0; strideNdx < DE_LENGTH_OF_ARRAY(strides); strideNdx++) in init()
186 const int stride = (strides[strideNdx] < 0) ? ((packed) ? (16) : (Array::inputTypeSize(m_type) * componentCount)) : (strides[strideNdx]); in init()
234 : TestCaseGroup(context, "strides", "Single stride vertex atribute") in SingleVertexArrayStrideTests()
281 int strides[] in init() local
384 int strides[] = {/*0,*/ -1, 17, 32}; // Tread negative value as sizeof input. Same as 0, but done outside of GL. init() local
[all...]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/compute/
H A DvktComputeCooperativeMatrixTests.cpp487 "// strides overriden by spec constants\n" in initPrograms()
613 string strides[4]; in initPrograms() local
616 strides[i] = (m_data.colMajor ? dims[i].rows : dims[i].cols) + string(" * ") + de::toString(m_data.subgroupsPerWorkgroupX * m_data.workgroupsX); in initPrograms()
621 css << " uint element0 = " << strides[0] << " * " << (m_data.colMajor ? dims[0].cols : dims[0].rows) << " * matrixID.y + " << (m_data.colMajor ? dims[0].rows : dims[0].cols) << " * matrixID.x;\n" in initPrograms()
622 " uint element1 = " << strides[1] << " * " << (m_data.colMajor ? dims[1].cols : dims[1].rows) << " * matrixID.y + " << (m_data.colMajor ? dims[1].rows : dims[1].cols) << " * matrixID.x;\n" in initPrograms()
623 " uint element2 = " << strides[2] << " * " << (m_data.colMajor ? dims[2].cols : dims[2].rows) << " * matrixID.y + " << (m_data.colMajor ? dims[2].rows : dims[2].cols) << " * matrixID.x;\n" in initPrograms()
624 " uint element3 = " << strides[3] << " * " << (m_data.colMajor ? dims[3].cols : dims[3].rows) << " * matrixID.y + " << (m_data.colMajor ? dims[3].rows : dims[3].cols) << " * matrixID.x;\n" in initPrograms()
645 string sharedStride = strides[m] + " / workgroupsX"; in initPrograms()
652 string sharedStride = strides[m] + " / workgroupsX"; in initPrograms()
655 " int localElementInput = " << strides[ in initPrograms()
1108 deUint32 strides[4]; // in elements iterate() local
[all...]
/third_party/mesa3d/src/gallium/drivers/llvmpipe/
H A Dlp_state_fs_fastpath.c57 unsigned *strides, in no_op()
122 opaque_color(uint8_t **cbufs, unsigned *strides, in opaque_color() argument
127 unsigned stride = strides[0] / sizeof *cbuf; in opaque_color()
155 unsigned *strides, in red()
160 opaque_color(cbufs, strides, int_mask, 0xffff0000); in red()
182 unsigned *strides, in green()
187 opaque_color(cbufs, strides, int_mask, 0xff00ff00); in green()
46 no_op(const struct lp_jit_context *context, uint32_t x, uint32_t y, uint32_t facing, const void *a0, const void *dadx, const void *dady, uint8_t **cbufs, uint8_t *depth, uint64_t mask, struct lp_jit_thread_data *thread_data, unsigned *strides, unsigned depth_stride, unsigned *color_sample_stride, unsigned depth_sample_stride) no_op() argument
144 red(const struct lp_jit_context *context, uint32_t x, uint32_t y, uint32_t facing, const void *a0, const void *dadx, const void *dady, uint8_t **cbufs, uint8_t *depth, uint64_t int_mask, struct lp_jit_thread_data *thread_data, unsigned *strides, unsigned depth_stride, unsigned *sample_stride, unsigned depth_sample_stride) red() argument
171 green(const struct lp_jit_context *context, uint32_t x, uint32_t y, uint32_t facing, const void *a0, const void *dadx, const void *dady, uint8_t **cbufs, uint8_t *depth, uint64_t int_mask, struct lp_jit_thread_data *thread_data, unsigned *strides, unsigned depth_stride, unsigned *sample_stride, unsigned depth_sample_stride) green() argument
/third_party/python/Objects/
H A Dmemoryobject.c48 base object. shape, strides, suboffsets and format are read-only for
52 strides and suboffsets belong to the memoryview and are thus writable.
55 buffer copies share shape, strides and suboffsets. In this case, the
225 ((view)->shape[0] == 1 || (view)->strides[0] == (view)->itemsize)
261 dest->strides[dest->ndim-1] == dest->itemsize && in last_dim_is_contiguous()
262 src->strides[src->ndim-1] == src->itemsize); in last_dim_is_contiguous()
408 dest->buf, dest->strides, dest->suboffsets, in copy_single()
409 src->buf, src->strides, src->suboffsets, in copy_single()
440 dest->buf, dest->strides, dest->suboffsets, in copy_buffer()
441 src->buf, src->strides, sr in copy_buffer()
483 Py_ssize_t *strides; buffer_to_contiguous() local
2068 tolist_base(PyMemoryViewObject *self, const char *ptr, const Py_ssize_t *shape, const Py_ssize_t *strides, const Py_ssize_t *suboffsets, const char *fmt) tolist_base() argument
2095 tolist_rec(PyMemoryViewObject *self, const char *ptr, Py_ssize_t ndim, const Py_ssize_t *shape, const Py_ssize_t *strides, const Py_ssize_t *suboffsets, const char *fmt) tolist_rec() argument
[all...]
/third_party/vk-gl-cts/modules/gles2/functional/
H A Des2fVertexArrayTest.cpp74 int strides[] = {0, -1, 17, 32}; // Tread negative value as sizeof input. Same as 0, but done outside of GL. in init() local
81 for (int strideNdx = 0; strideNdx < DE_LENGTH_OF_ARRAY(strides); strideNdx++) in init()
86 const int stride = (strides[strideNdx] < 0 ? Array::inputTypeSize(inputTypes[inputTypeNdx]) * componentCount : strides[strideNdx]); in init()
129 : TestCaseGroup(context, "strides", "Single stride vertex atribute") in SingleVertexArrayStrideTests()
139 // Test strides with different input types, component counts and storage, Usage(?) in init()
143 int strides[] = {/*0,*/ -1, 17, 32}; // Tread negative value as sizeof input. Same as 0, but done outside of GL. in init() local
153 for (int strideNdx = 0; strideNdx < DE_LENGTH_OF_ARRAY(strides); strideNdx++) in init()
155 const int stride = (strides[strideNdx] < 0 ? Array::inputTypeSize(inputTypes[inputTypeNdx]) * componentCount : strides[strideNd in init()
214 int strides[] = {/*0,*/ -1, 17, 32}; // Tread negative value as sizeof input. Same as 0, but done outside of GL. init() local
284 int strides[] = {/*0,*/ -1, 17, 32}; // Tread negative value as sizeof input. Same as 0, but done outside of GL. init() local
723 int strides[] = {0, -1, 17, 32}; addStrideCases() local
[all...]
/third_party/skia/third_party/externals/libjpeg-turbo/
H A Dturbojpeg.c759 int *strides, int subsamp, int flags) in tjEncodeYUVPlanes()
877 ptr += (strides && strides[i] != 0) ? strides[i] : pw[i]; in tjEncodeYUVPlanes()
920 int pw0, ph0, strides[3], retval = -1; in tjEncodeYUV3() local
933 strides[0] = PAD(pw0, pad); in tjEncodeYUV3()
935 strides[1] = strides[2] = 0; in tjEncodeYUV3()
941 strides[1] = strides[ in tjEncodeYUV3()
756 tjEncodeYUVPlanes(tjhandle handle, const unsigned char *srcBuf, int width, int pitch, int height, int pixelFormat, unsigned char **dstPlanes, int *strides, int subsamp, int flags) tjEncodeYUVPlanes() argument
971 tjCompressFromYUVPlanes(tjhandle handle, const unsigned char **srcPlanes, int width, const int *strides, int height, int subsamp, unsigned char **jpegBuf, unsigned long *jpegSize, int jpegQual, int flags) tjCompressFromYUVPlanes() argument
1115 int pw0, ph0, strides[3], retval = -1; tjCompressFromYUV() local
1428 tjDecodeYUVPlanes(tjhandle handle, const unsigned char **srcPlanes, const int *strides, int subsamp, unsigned char *dstBuf, int width, int pitch, int height, int pixelFormat, int flags) tjDecodeYUVPlanes() argument
1582 int pw0, ph0, strides[3], retval = -1; tjDecodeYUV() local
1615 tjDecompressToYUVPlanes(tjhandle handle, const unsigned char *jpegBuf, unsigned long jpegSize, unsigned char **dstPlanes, int width, int *strides, int height, int flags) tjDecompressToYUVPlanes() argument
1800 int pw0, ph0, strides[3], retval = -1, jpegSubsamp = -1; tjDecompressToYUV2() local
[all...]
H A Dturbojpeg.h836 * #tjPlaneSizeYUV() for the given image width, height, strides, and level of
844 * @param strides an array of integers, each specifying the number of bytes per
847 * @ref YUVnotes "YUV Image Format Notes".) If <tt>strides</tt> is NULL, then
848 * the strides for all planes will be set to their respective plane widths.
849 * You can adjust the strides in order to specify an arbitrary amount of line
895 int width, const int *strides,
1092 * on the image width, height, strides, and level of chrominance subsampling.
1095 * @param strides an array of integers, each specifying the number of bytes per
1098 * @ref YUVnotes "YUV Image Format Notes".) If <tt>strides</tt> is NULL, then
1099 * the strides fo
[all...]
/third_party/python/Lib/test/
H A Dtest_buffer.py265 """Calculate strides of a contiguous array. Layout is 'C' or
270 strides = list(shape[1:]) + [itemsize]
272 strides[i] *= strides[i+1]
274 strides = [itemsize] + list(shape[:-1])
276 strides[i] *= strides[i-1]
277 return strides
321 def getindex(ndim, ind, strides):
325 ret += strides[
[all...]
H A Dtest_picklebuffer.py27 self.assertEqual(m.strides, expected.strides)
91 arr = ndarray(list(range(12)), shape=(3, 4), strides=(4, 12), format='<i')
121 arr = ndarray(list(range(6)), shape=(2, 3), strides=(2, 4),
/third_party/vk-gl-cts/modules/gles3/functional/
H A Des3fVertexArrayTest.cpp74 int strides[] = {0, -1, 17, 32}; // Tread negative value as sizeof input. Same as 0, but done outside of GL. in init() local
81 for (int strideNdx = 0; strideNdx < DE_LENGTH_OF_ARRAY(strides); strideNdx++) in init()
83 const int stride = (strides[strideNdx] < 0 ? Array::inputTypeSize(inputTypes[inputTypeNdx]) * 2 : strides[strideNdx]); in init()
172 int strides[] = {/*0,*/ -1, 17, 32}; // Tread negative value as sizeof input. Same as 0, but done outside of GL. in init() local
180 for (int strideNdx = 0; strideNdx < DE_LENGTH_OF_ARRAY(strides); strideNdx++) in init()
183 const int stride = (strides[strideNdx] < 0) ? ((packed) ? (16) : (Array::inputTypeSize(m_type) * componentCount)) : (strides[strideNdx]); in init()
231 : TestCaseGroup(context, "strides", "Single stride vertex atribute") in SingleVertexArrayStrideTests()
278 int strides[] in init() local
381 int strides[] = {/*0,*/ -1, 17, 32}; // Tread negative value as sizeof input. Same as 0, but done outside of GL. init() local
936 int strides[] = {0, -1, 17, 32}; addStrideCases() local
[all...]
/third_party/skia/third_party/externals/angle2/src/libANGLE/
H A DTransformFeedback.cpp154 auto strides = programExecutable->getTransformFeedbackStrides(); in begin() local
155 ASSERT(strides.size() <= mState.mIndexedBuffers.size() && !strides.empty()); in begin()
157 for (size_t index = 0; index < strides.size(); index++) in begin()
160 GetBoundBufferAvailableSize(mState.mIndexedBuffers[index]) / strides[index]; in begin()
/third_party/ffmpeg/libavfilter/dnn/
H A Ddnn_backend_native_layer_avgpool.c37 avgpool_params->strides = (int32_t)avio_rl32(model_file_context); in ff_dnn_load_layer_avg_pool()
42 if (dnn_size > file_size || avgpool_params->kernel_size <= 0 || avgpool_params->strides <=0){ in ff_dnn_load_layer_avg_pool()
71 int kernel_strides = avgpool_params->strides; in ff_dnn_execute_layer_avg_pool()
78 * Eg: assuming the input height = 1080, the strides = 11, so the remainders = 1080 % 11 = 2 in ff_dnn_execute_layer_avg_pool()
H A Ddnn_backend_native_layer_avgpool.h32 int32_t strides, kernel_size; member
/third_party/ffmpeg/libavfilter/tests/
H A Ddnn-layer-avgpool.c34 y = tf.layers.average_pooling2d(x, pool_size=[2,2], strides=[1,1], padding='VALID') in test_with_same()
82 params.strides = 1; in test_with_same()
117 y = tf.layers.average_pooling2d(x, pool_size=[2,2], strides=[1,1], padding='VALID') in test_with_valid()
162 params.strides = 1; in test_with_valid()
/third_party/ffmpeg/tests/dnn/
H A Ddnn-layer-avgpool-test.c34 y = tf.layers.average_pooling2d(x, pool_size=[2,2], strides=[1,1], padding='VALID') in test_with_same()
82 params.strides = 1; in test_with_same()
117 y = tf.layers.average_pooling2d(x, pool_size=[2,2], strides=[1,1], padding='VALID') in test_with_valid()
162 params.strides = 1; in test_with_valid()
/third_party/python/Include/
H A Dpybuffer.h25 pointed to by strides in simple case.*/
30 Py_ssize_t *strides; member
79 /*Fill the strides array with byte-strides of a contiguous
85 Py_ssize_t *strides,
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/pipeline/
H A DvktPipelineBindVertexBuffers2Tests.cpp497 vk::VkDeviceSize strides[] = { colorStride, vertexStride, colorStride, vertexStride, colorStride, vertexStride, colorStride, vertexStride }; in iterate() local
501 vk.cmdBindVertexBuffers2(*cmdBuffer, 0, 2 * m_count, buffers, offsets.data(), sizes.data(), strides); in iterate()
503 vk.cmdBindVertexBuffers2EXT(*cmdBuffer, 0, 2 * m_count, buffers, offsets.data(), sizes.data(), strides); in iterate()
511 vk.cmdBindVertexBuffers2(*cmdBuffer, i, 1, &buffers[i], &offsets[i], &sizes[i], &strides[i]); in iterate()
513 vk.cmdBindVertexBuffers2EXT(*cmdBuffer, i, 1, &buffers[i], &offsets[i], &sizes[i], &strides[i]); in iterate()
520 log << tcu::TestLog::Message << "binding " << i << ", buffer " << buffers[i] << ", offset " << offsets[i] << ", size " << sizes[i] << ", stride " << strides[i] << tcu::TestLog::EndMessage; in iterate()
602 Sizes& strides,
738 BindVertexBuffers2Instance::Buffers BindVertexBuffers2Instance::createBuffers (Sizes& offsets, Sizes& strides, Sizes& sizes) in createBuffers() argument
870 strides.resize(m_params.bufferCount); in createBuffers()
885 // random strides multiplyie in createBuffers()
963 Sizes strides; iterate() local
1072 logStrides << strides[k]; iterate() local
[all...]
/third_party/mesa3d/src/gallium/drivers/svga/
H A Dsvga_pipe_streamout.c137 unsigned strides[SVGA3D_DX_MAX_SOTARGETS]; in svga_create_stream_output() local
180 memset(strides, 0, sizeof(strides)); in svga_create_stream_output()
277 strides[buf_idx] = info->stride[buf_idx] * sizeof(float); in svga_create_stream_output()
287 strides, decls, 0, streamout); in svga_create_stream_output()
/third_party/mesa3d/src/gallium/drivers/d3d12/
H A Dd3d12_pipeline_state.cpp100 UINT *strides, UINT *num_strides) in fill_so_declaration()
143 strides[i] = info->stride[i] * 4; in fill_so_declaration()
224 UINT strides[PIPE_MAX_SO_OUTPUTS] = { 0 }; in create_gfx_pipeline_state() local
269 fill_so_declaration(&state->so_info, last_vertex_stage_nir, entries, &num_entries, strides, &num_strides); in create_gfx_pipeline_state()
274 pso_desc.StreamOutput.pBufferStrides = strides; in create_gfx_pipeline_state()
97 fill_so_declaration(const struct pipe_stream_output_info *info, nir_shader *last_vertex_stage, D3D12_SO_DECLARATION_ENTRY *entries, UINT *num_entries, UINT *strides, UINT *num_strides) fill_so_declaration() argument
/third_party/skia/experimental/ffmpeg/
H A DSkVideoDecoder.cpp165 int const strides[], in make_yuv_420()
173 pixmaps[0].reset(SkImageInfo::MakeA8(w, h), data[0], strides[0]); in make_yuv_420() local
176 pixmaps[1].reset(SkImageInfo::MakeA8(w, h), data[1], strides[1]); in make_yuv_420() local
177 pixmaps[2].reset(SkImageInfo::MakeA8(w, h), data[2], strides[2]); in make_yuv_420() local
162 make_yuv_420(GrRecordingContext* rContext, int w, int h, uint8_t* const data[], int const strides[], SkYUVColorSpace yuvSpace, sk_sp<SkColorSpace> cs) make_yuv_420() argument
/third_party/mesa3d/include/GL/internal/
H A Ddri_interface.h1397 * DRM_FORMAT_*, and strides are in bytes not pixels. Stride is
1405 int *strides, int *offsets,
1446 int *strides, int *offsets,
1459 int *strides, int *offsets,
1551 int *strides, int *offsets,
1648 int *strides, int *offsets,
1690 int *strides, int *offsets,
/third_party/ffmpeg/tools/python/
H A Dconvert_from_tensorflow.py380 strides = node.attr['strides']
382 # Tensorflow do not support pooling strides in batch dimension and
383 # current native NN do not support pooling strides in channel dimension, added assert() here.
384 assert(strides.list.i[1]==strides.list.i[2])
385 assert(strides.list.i[0]==1)
386 assert(strides.list.i[3]==1)
387 strides = strides
[all...]

Completed in 28 milliseconds

12345