Home
last modified time | relevance | path

Searched defs:ndim (Results 1 – 25 of 36) sorted by relevance

12

/third_party/mindspore/mindspore/numpy/
Dutils_const.py81 def _check_start_normalize(start, ndim): argument
91 def _check_axes_range(axes, ndim): argument
149 def _check_axis_in_range(axis, ndim): argument
159 def _check_axis_valid(axes, ndim): argument
183 def _tile_size(shape, out_shape, ndim): argument
311 def _canonicalize_axis(axis, ndim): argument
356 def _expanded_shape(ndim, axis_size, axis): argument
365 def _add_unit_axes(shape, ndim, append=False): argument
Darray_ops.py734 def _atleast_xd(ndim, arys): argument
1097 def _get_moved_perm(ndim, source, destination): argument
1450 def convert_neg_indices(indices, ndim): argument
1614 def _get_flip_start(ndim, shape, axes): argument
1619 def _get_flip_end(ndim, shape, axes): argument
1624 def _get_flip_strides(ndim, axes): argument
Dutils.py78 def _expand(x, ndim, axis=0): argument
/third_party/mindspore/mindspore/lite/test/ut/src/runtime/kernel/opencl/
Dfullconnection_tests.cc26 … std::vector<int> *bias_shape, std::vector<int> *output_shape, int ndim, int ci, int co, in CreateParameter()
55 int ndim = 2; variable
74 int ndim = 4; variable
96 int ndim = 3; variable
119 int ndim = 3; variable
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/
Dbroadcast_to_infer.c67 const int *input_shape1, int *ndim, int *in_shape0, int *in_shape1) { in MakeUpInputShapes()
100 int BroadCastOutputShape(const int *in_shape0, const int *in_shape1, const int ndim, int *out_shape, in BroadCastOutputShape()
120 const int *input_shape1, int *ndim, int *out_shape, bool *has_broad_cast) { in BroadCastToShape()
159 int ndim = input_shape_size; in BroadcastToInferShape() local
Darithmetic_infer.c39 … const int *input_shape1, int *ndim, int *in_shape0, int *in_shape1, int *out_shape, in BroadCastInferShape()
80 int ndim = input_shape0_size; in ArithmeticInferShape() local
Dbias_grad_infer.c36 size_t ndim = inshape_size; in BiasGradInferShape() local
Dstrided_slice_grad_infer.c35 void ApplyBeginEndEllipsisMask(size_t ndim, int *begins, const uint32_t *const begins_mask, int *en… in ApplyBeginEndEllipsisMask()
Dstrided_slice_infer.c81 int GenerateAxes(const TensorC *axes_tensor, int *axes, int num, int ndim) { in GenerateAxes()
109 int HandleAxesInputExist(const TensorC *const *inputs, int *ndim, int *in_shape, int *begins, int *… in HandleAxesInputExist()
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/
Dnnacl_common.h26 static inline void ComputeStrides(const int *shape, int *strides, const int ndim) { in ComputeStrides()
/third_party/mindspore/mindspore/lite/src/runtime/kernel/opencl/kernel/
Dpad.cc104 int ndim = in_tensors_.front()->shape().size(); in SetConstArgs() local
/third_party/mindspore/mindspore/
D_checkparam.py651 def check_transpose_axis(axes, ndim): argument
700 def check_swapaxes_axis(axes, ndim): argument
754 def check_axis_in_range(axis, ndim): argument
763 def check_axis_valid(axes, ndim): argument
790 def expanded_shape(ndim, axis_size, axis): argument
841 def check_and_canonicalize_axes(axes, ndim): argument
/third_party/mindspore/mindspore/nn/layer/
Dtimedistributed.py38 def _check_expand_dims_axis(time_axis, ndim, prim_name=None): argument
/third_party/python/Lib/test/
Dtest_buffer.py264 def strides_from_shape(ndim, shape, itemsize, layout): argument
321 def getindex(ndim, ind, strides): argument
435 def verify_structure(memlen, itemsize, ndim, shape, strides, offset): argument
564 def randslice_from_shape(ndim, shape): argument
698 def genslices_ndim(ndim, shape): argument
716 def rslices_ndim(ndim, shape, iterations=5): argument
774 ndim, shape, strides, argument
/third_party/mindspore/mindspore/lite/src/runtime/kernel/arm/fp16/
Darithmetic_fp16.cc149 void ArithmeticFP16CPUKernel::TileConstTensor(const void *in_data, void *out_data, size_t ndim, con… in TileConstTensor()
/third_party/mindspore/mindspore/ops/composite/
Dmath_ops.py708 def _tile_size(shape, out_shape, ndim): argument
723 def _expand(x, ndim): argument
/third_party/python/Objects/
Dmemoryobject.c362 copy_rec(const Py_ssize_t *shape, Py_ssize_t ndim, Py_ssize_t itemsize, in copy_rec()
630 memory_alloc(int ndim) in memory_alloc()
701 int ndim) in mbuf_add_incomplete_view()
1259 copy_shape(Py_ssize_t *shape, const PyObject *seq, Py_ssize_t ndim, in copy_shape()
1298 cast_to_ND(PyMemoryViewObject *mv, const PyObject *shape, int ndim) in cast_to_ND()
1373 Py_ssize_t ndim = 1; in memoryview_cast_impl() local
2086 tolist_rec(const char *ptr, Py_ssize_t ndim, const Py_ssize_t *shape, in tolist_rec()
2793 Py_ssize_t ndim, const Py_ssize_t *shape, in cmp_rec()
/third_party/boost/boost/mpi/
Dcartesian_communicator.hpp132 cartesian_topology(int ndim) in cartesian_topology()
/third_party/mindspore/mindspore/lite/micro/coder/wrapper/fp32/
Darithmetic_fp32_wrapper.c17 void TileConstTensor(const float *in_data, float *out_data, size_t ndim, const int *in_shape, const… in TileConstTensor()
/third_party/boost/libs/mpi/test/
Dcartesian_topology_test.cpp169 int const ndim = world.size() >= 24 ? 3 : 2; in BOOST_AUTO_TEST_CASE() local
/third_party/mindspore/mindspore/ccsrc/pybind_api/ir/
Dtensor_py.cc162 ssize_t ndim() const override { return buffer_.ndim; } in ndim() function in mindspore::tensor::TensorDataNumpy
261 const auto ndim = shape.size(); in GetStrides() local
/third_party/mindspore/mindspore/lite/src/runtime/kernel/opencl/
Dutils.cc187 int GetBroadcastGpuAxis(int ndim, int ori_axis) { in GetBroadcastGpuAxis()
Dopencl_kernel.cc226 size_t ndim = global_size_.size(); in GenerateTuningParam() local
/third_party/python/Modules/
D_testbuffer.c473 copy_rec(const Py_ssize_t *shape, Py_ssize_t ndim, Py_ssize_t itemsize, in copy_rec()
612 const Py_ssize_t *suboffsets, Py_ssize_t ndim, Py_ssize_t itemsize) in unpack_rec()
931 Py_ssize_t ndim) in verify_structure()
1121 Py_ssize_t ndim) in init_structure()
1181 Py_ssize_t ndim; in init_ndbuf() local
2483 Py_ssize_t ndim) in arraycmp()
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/
Darithmetic_int8.c23 void TileOneDimensionInt8(const int8_t *inData, int8_t *outData, int dim, size_t ndim, const int *i… in TileOneDimensionInt8()

12