Home
last modified time | relevance | path

Searched refs:input_shape_size (Results 1 – 14 of 14) sorted by relevance

/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/gpu/cuda_impl/
Drandom_choice_with_mask_impl.cu102 __global__ void Reshape2Index(const int input_size, const int input_shape_size, const int d1, const… in Reshape2Index() argument
113 index_pos = pos * input_shape_size; in Reshape2Index()
115 for (int i = 0; i < input_shape_size; i++) { in Reshape2Index()
119 for (int i = MAX_DIMENSION - input_shape_size; i < MAX_DIMENSION; i++) { in Reshape2Index()
184 __global__ void MoveToOutput(const int input_shape_size, const int count, const T *input, S *output… in MoveToOutput() argument
194 pos *= input_shape_size; in MoveToOutput()
195 idx *= input_shape_size; in MoveToOutput()
196 for (size_t j = 0; j < input_shape_size; j++) { in MoveToOutput()
208 pos *= input_shape_size; in MoveToOutput()
209 idx *= input_shape_size; in MoveToOutput()
[all …]
Drandom_choice_with_mask_impl.cuh31 void CalRandomChoiceWithMask(const int &input_size, const int &input_shape_size, const int &d1, con…
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/
Dbatch_to_space_infer.c22 size_t input_shape_size = 0; in SetOutputShapeFromParam() local
23 ShapeSet(input_shape, &input_shape_size, inputs[0]->shape_, inputs[0]->shape_size_); in SetOutputShapeFromParam()
25 if (input_shape_size != 4) { in SetOutputShapeFromParam()
56 size_t output_shape_size = input_shape_size; in SetOutputShapeFromParam()
67 size_t input_shape_size = 0; in SetOutputShapeFromInput() local
68 ShapeSet(input_shape, &input_shape_size, inputs[0]->shape_, inputs[0]->shape_size_); in SetOutputShapeFromInput()
69 if (input_shape_size != 4) { in SetOutputShapeFromInput()
104 size_t output_shape_size = input_shape_size; in SetOutputShapeFromInput()
Dflatten_infer.c39 size_t input_shape_size = 0; in FlattenInferShape() local
40 ShapeSet(input_shape, &input_shape_size, input->shape_, input->shape_size_); in FlattenInferShape()
44 for (size_t i = 1; i < input_shape_size; i++) { in FlattenInferShape()
Ddepth_to_space_infer.c40 size_t input_shape_size = 0; in DepthToSpaceInferShape() local
41 ShapeSet(input_shape, &input_shape_size, input->shape_, input->shape_size_); in DepthToSpaceInferShape()
48 size_t output_shape_size = input_shape_size; in DepthToSpaceInferShape()
Dargmin_max_infer.c59 int input_shape_size = (int)input->shape_size_; in ArgMinMaxInferShape() local
60 int axis = param->axis_ < 0 ? param->axis_ + input_shape_size : param->axis_; in ArgMinMaxInferShape()
61 if (axis >= input_shape_size || axis < 0) { in ArgMinMaxInferShape()
Dpooling_infer.c85 size_t input_shape_size = 0; in PoolingInferShape() local
86 ShapeSet(input_shape, &input_shape_size, input->shape_, input->shape_size_); in PoolingInferShape()
89 SetShapeArray(output, input_shape, input_shape_size); in PoolingInferShape()
Dbroadcast_to_infer.c157 int input_shape_size = input->shape_size_; in BroadcastToInferShape() local
159 int ndim = input_shape_size; in BroadcastToInferShape()
186 …if (BroadCastToShape(input_shape_size, dst_shape_size, input_shape, dst_shape, &ndim, output_shape, in BroadcastToInferShape()
Dcommon_infer.c407 size_t input_shape_size = 0; in FftInferShape() local
408 ShapeSet(input_shape, &input_shape_size, input->shape_, input->shape_size_); in FftInferShape()
409 if (input_shape_size == 0) { in FftInferShape()
412 input_shape_size--; in FftInferShape()
413 SetShapeArray(output, input_shape, input_shape_size); in FftInferShape()
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/
Dbroadcast_to_cpu_kernel.cc33 size_t input_shape_size = input_shape_.size(); in InitKernel() local
35 if (output_shape_size < input_shape_size) { in InitKernel()
43 size_t offset = output_shape_size - input_shape_size; in InitKernel()
44 for (size_t i = 0; i < input_shape_size; ++i) { in InitKernel()
51 for (size_t i = 0; i < input_shape_size; ++i) { in InitKernel()
57 shape_info_.input_shape_size_ = SizeToInt(input_shape_size); in InitKernel()
/third_party/mindspore/mindspore/ccsrc/runtime/device/ascend/
Dkernel_select_ascend.cc95 auto input_shape_size = AnfAlgo::GetPrevNodeOutputInferShape(cnode, index).size(); in GetPriorityMatchFormat() local
96 if (input_shape_size == k5dSize) { in GetPriorityMatchFormat()
99 need_change_nd = (need_change_nd || (input_shape_size != k4dSize && input_shape_size > 1)); in GetPriorityMatchFormat()
/third_party/mindspore/mindspore/core/abstract/
Dprim_nn.cc51 const size_t input_shape_size = 4; in InferImplPooling() local
52 if (input_shape->shape().size() != input_shape_size) { in InferImplPooling()
/third_party/mindspore/mindspore/lite/tools/converter/parser/caffe/
Dcaffe_model_parser.cc335 for (int i = 0; i < caffe_model_.input_shape_size(); i++) { in ConvertGraphInputsOfShape()
/third_party/mindspore/mindspore/ccsrc/transform/express_ir/
Donnx_exporter.cc1779 size_t input_shape_size = input_shape->shape().size(); in ExportMergeLayerNorm() local
1780 for (size_t i = 0; i < input_shape_size - 1; i++) { in ExportMergeLayerNorm()
1786 new_input_shape.push_back(input_shape->shape()[input_shape_size - kOneNum]); in ExportMergeLayerNorm()