Home
last modified time | relevance | path

Searched refs:kNHWC_C (Results 1 – 25 of 27) sorted by relevance

12

/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/
Ddepth_to_space_infer.c44 …if (block_size == 0 || input_shape[kNHWC_C] % (block_size * block_size) != 0 || input_shape[kNHWC_… in DepthToSpaceInferShape()
52 output_shape[kNHWC_C] = input_shape[kNHWC_C] / (block_size * block_size); in DepthToSpaceInferShape()
Dspace_to_depth_infer.c53 if (input->shape_[kNHWC_C] == 0 || block_size * block_size > INT_MAX / input->shape_[kNHWC_C]) { in SpaceToDepthInferShape()
56 outputs[0]->shape_[kNHWC_C] = input->shape_[kNHWC_C] * (block_size * block_size); in SpaceToDepthInferShape()
Dbatch_to_space_infer.c60 output_shape[kNHWC_C] = input_shape[kNHWC_C]; in SetOutputShapeFromParam()
108 output_shape[kNHWC_C] = input_shape[kNHWC_C]; in SetOutputShapeFromInput()
Dspace_to_batch_nd_infer.c58 outputs[0]->shape_[kNHWC_C] = input->shape_[kNHWC_C]; in SpaceSetOutputShapeFromParam()
101 output_shape[kNHWC_C] = input->shape_[kNHWC_C]; in SpaceSetOutputShapeFromInput()
Dspace_to_batch_infer.c59 outputs[0]->shape_[kNHWC_C] = input->shape_[kNHWC_C]; in SpaceToBatchInferShape()
/third_party/mindspore/mindspore/lite/test/ut/nnacl/infer/
Dskip_gram_infer_test.cc32 inputs[0]->format_ = kNHWC_C; in TEST_F()
39 ASSERT_EQ(outputs[0]->format_, kNHWC_C); in TEST_F()
/third_party/mindspore/mindspore/lite/src/runtime/kernel/arm/int8/
Dmul_int8.cc75 bool condition4 = in_tensor0_shape[kNHWC_C] == in_tensor1_shape[kNHWC_C]; in CheckSameShapeSize()
93 if (in_tensor0->ElementsNum() == in_tensor1->shape()[kNHWC_C]) { in CheckIfFastImpl()
97 if (in_tensor1->ElementsNum() == in_tensor0->shape()[kNHWC_C]) { in CheckIfFastImpl()
/third_party/mindspore/mindspore/lite/src/runtime/kernel/arm/fp16_grad/
Dpooling_fp16_grad.cc65 pool_param->input_channel_ = in_shape[kNHWC_C]; in ReSize()
69 pool_param->output_channel_ = out_shape[kNHWC_C]; in ReSize()
Dconvolution_fp16_grad_filter.cc50 conv_param->input_channel_ = x_tensor->shape().at(kNHWC_C); in ReSize()
51 conv_param->output_channel_ = dy_tensor->shape().at(kNHWC_C); in ReSize()
Dbn_fp16_grad.cc60 int channels = input_x->shape().at(kNHWC_C); in ReSize()
Dconvolution_fp16_grad_input.cc48 conv_param->input_channel_ = dx_tensor->shape()[(kNHWC_C)]; in ReSize()
/third_party/mindspore/mindspore/lite/src/runtime/kernel/arm/fp32_grad/
Dpooling_grad.cc65 pool_param->input_channel_ = in_shape[kNHWC_C]; in ReSize()
69 pool_param->output_channel_ = out_shape[kNHWC_C]; in ReSize()
Ddeconvolution_grad_filter.cc53 conv_param->input_channel_ = x_tensor->shape().at(kNHWC_C); in Init()
54 conv_param->output_channel_ = dy_tensor->shape().at(kNHWC_C); in Init()
Dconvolution_grad_filter.cc53 conv_param->input_channel_ = x_tensor->shape().at(kNHWC_C); in ReSize()
54 conv_param->output_channel_ = dy_tensor->shape().at(kNHWC_C); in ReSize()
Dbn_grad.cc47 int channels = input_x->shape().at(kNHWC_C); in ReSize()
Dconvolution_grad_input.cc48 conv_param->input_channel_ = dx_tensor->shape()[(kNHWC_C)]; in ReSize()
/third_party/mindspore/mindspore/lite/src/runtime/kernel/opencl/kernel/
Dspace_to_batch_nd.cc49 param->padded_in_shape_[kNHWC_C] = in_tensors_[0]->shape().at(kNHWC_C); in CheckSpecs()
/third_party/mindspore/mindspore/lite/tools/converter/parser/tflite/
Dtflite_conv_parser.cc145 if (INT_MUL_OVERFLOW(data_shape[kNHWC_C], multiplier)) { in Parse()
149 prim->set_out_channel(data_shape[kNHWC_C] * multiplier); in Parse()
/third_party/mindspore/mindspore/lite/tools/converter/parser/onnx/
Donnx_conv_parser.cc84 if (INT_MUL_OVERFLOW_THRESHOLD(dims.at(kNHWC_C), group, INT64_MAX)) { in GetConvChannel()
88 *channel_in = dims.at(kNHWC_C) * group; in GetConvChannel()
/third_party/mindspore/mindspore/lite/src/runtime/kernel/arm/fp16/
Ddeconvolution_depthwise_fp16.cc39 conv_param_->input_channel_ = out_tensors_.front()->shape().at(kNHWC_C); in InitSlideParam()
43 conv_param_->output_channel_ = in_tensors_.front()->shape().at(kNHWC_C); in InitSlideParam()
/third_party/mindspore/mindspore/lite/src/runtime/kernel/arm/fp32/
Ddeconvolution_depthwise_fp32.cc38 conv_param_->input_channel_ = out_tensors_.front()->shape().at(kNHWC_C); in InitSlideParam()
42 conv_param_->output_channel_ = in_tensors_.front()->shape().at(kNHWC_C); in InitSlideParam()
/third_party/mindspore/mindspore/lite/micro/coder/opcoders/cmsis-nn/int8/
Dconv2d_int8_coder.cc99 MS_CHECK_TRUE(input_tensor_->Channel() == filter_tensor_->DimensionSize(kNHWC_C), in SetParameters()
/third_party/mindspore/mindspore/lite/src/delegate/tensorrt/
Dtensorrt_utils.cc307 if (nhwc_axis > kNHWC_C) { in ConvertAxisFromNHWC2NCHW()
317 case kNHWC_C: in ConvertAxisFromNHWC2NCHW()
/third_party/mindspore/mindspore/lite/micro/coder/opcoders/nnacl/fp32/
Dresize_fp32_coder.cc177 int c = input_tensor_->shape().at(kNHWC_C); in DoCode()
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/
Dop_base.h97 #define kNHWC_C 3 macro

12