Searched refs:MS_CHECK_INT_MUL_NOT_OVERFLOW (Results 1 – 15 of 15) sorted by relevance
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/ |
D | resize_infer.c | 48 MS_CHECK_INT_MUL_NOT_OVERFLOW((int)(data[1]), GetHeight(input), NNACL_ERRCODE_MUL_OVERFLOW); in HandleTwoInputs() 49 MS_CHECK_INT_MUL_NOT_OVERFLOW((int)(data[2]), GetWidth(input), NNACL_ERRCODE_MUL_OVERFLOW); in HandleTwoInputs() 61 MS_CHECK_INT_MUL_NOT_OVERFLOW(scale_height, GetHeight(input), NNACL_ERRCODE_MUL_OVERFLOW); in HandleTwoInputs() 62 MS_CHECK_INT_MUL_NOT_OVERFLOW(scale_width, GetWidth(input), NNACL_ERRCODE_MUL_OVERFLOW); in HandleTwoInputs() 89 MS_CHECK_INT_MUL_NOT_OVERFLOW(GetHeight(input) - 1, scale - 1, NNACL_ERRCODE_MUL_OVERFLOW); in HandleTwoInputs() 90 MS_CHECK_INT_MUL_NOT_OVERFLOW(GetWidth(input) - 1, scale - 1, NNACL_ERRCODE_MUL_OVERFLOW); in HandleTwoInputs()
|
D | space_to_batch_infer.c | 54 MS_CHECK_INT_MUL_NOT_OVERFLOW(block_shape[0], block_w, NNACL_ERR); in SpaceToBatchInferShape() 55 MS_CHECK_INT_MUL_NOT_OVERFLOW(input->shape_[kNHWC_N], block_shape[0] * block_w, NNACL_ERR); in SpaceToBatchInferShape()
|
D | common_infer.c | 281 MS_CHECK_INT_MUL_NOT_OVERFLOW(res, tensor->shape_[i], NNACL_ERRCODE_MUL_OVERFLOW); in GetElementNum()
|
/third_party/mindspore/mindspore/lite/src/runtime/kernel/arm/fp32/ |
D | glu_fp32.cc | 101 MS_CHECK_INT_MUL_NOT_OVERFLOW(task_id, thread_n_stride_, RET_ERROR); in Split() 123 MS_CHECK_INT_MUL_NOT_OVERFLOW(stride, task_id, RET_ERROR); in Sigmoid() 138 MS_CHECK_INT_MUL_NOT_OVERFLOW(stride, task_id, RET_ERROR); in Mul()
|
D | local_response_norm_fp32.cc | 55 MS_CHECK_INT_MUL_NOT_OVERFLOW(stride, task_id, RET_ERROR); in DoLocalResponseNorm()
|
D | space_to_depth_fp32.cc | 66 MS_CHECK_INT_MUL_NOT_OVERFLOW(task_id, thread_h_stride_, RET_ERROR); in SpaceToDepth()
|
D | arithmetic_self_fp32.cc | 77 MS_CHECK_INT_MUL_NOT_OVERFLOW(task_id, stride, RET_ERROR); in DoExecute()
|
/third_party/mindspore/mindspore/lite/src/runtime/kernel/arm/fp16/ |
D | biasadd_fp16.cc | 67 MS_CHECK_INT_MUL_NOT_OVERFLOW(data_size, sizeof(float16_t), RET_ERROR); in Run() 93 MS_CHECK_INT_MUL_NOT_OVERFLOW(bias_tensor_->ElementsNum(), sizeof(float16_t), RET_ERROR); in GetBiasData()
|
D | scale_fp16.cc | 146 MS_CHECK_INT_MUL_NOT_OVERFLOW(in_tensors_.at(1)->ElementsNum(), sizeof(float16_t), RET_ERROR); in MallocAssignTmpBuffer()
|
D | arithmetic_self_fp16.cc | 61 MS_CHECK_INT_MUL_NOT_OVERFLOW(task_id, stride, RET_ERROR); in DoExecute()
|
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/ |
D | op_base.h | 121 #define MS_CHECK_INT_MUL_NOT_OVERFLOW(value1, value2, errcode) macro 210 #define MS_CHECK_INT_MUL_NOT_OVERFLOW(value1, value2, errcode) \ macro
|
/third_party/mindspore/mindspore/lite/tools/optimizer/parallel/ |
D | conv2d_info.cc | 315 MS_CHECK_INT_MUL_NOT_OVERFLOW(in_channel, strategys[0][kAxisCIn][0], RET_ERROR); in ConstructOutputCNodes() 325 MS_CHECK_INT_MUL_NOT_OVERFLOW(out_channel, strategys[1][kAxisCOut][0], RET_ERROR); in ConstructOutputCNodes()
|
/third_party/mindspore/mindspore/lite/tools/optimizer/fusion/ |
D | tflite_lstm_cell_fusion.cc | 467 MS_CHECK_INT_MUL_NOT_OVERFLOW(C8NUM, step, RET_ERROR); in GetConcatedParam() 477 MS_CHECK_INT_MUL_NOT_OVERFLOW(data_shapes[0][0], data_shapes[0][1], RET_ERROR); in GetConcatedParam() 479 MS_CHECK_INT_MUL_NOT_OVERFLOW(C4NUM, step, RET_ERROR); in GetConcatedParam()
|
/third_party/mindspore/mindspore/lite/src/runtime/kernel/arm/int8/ |
D | scale_int8.cc | 260 MS_CHECK_INT_MUL_NOT_OVERFLOW(task_id, count_unit_, RET_ERROR); in Scale()
|
/third_party/mindspore/mindspore/lite/tools/converter/parser/tf/ |
D | tf_model_parser.cc | 101 MS_CHECK_INT_MUL_NOT_OVERFLOW(shape_size, tensor_shape.dim(i).size(), 0); in GetShapeSize()
|