/third_party/mindspore/mindspore/lite/src/runtime/kernel/opencl/ |
D | opencl_fusion.cc | 52 MS_ASSERT(a); in AIsInB() 53 MS_ASSERT(b); in AIsInB() 58 MS_ASSERT(node); in PredIs() 61 MS_ASSERT(pred); in PredIs() 63 MS_ASSERT(pred->out_kernels().front() == node); in PredIs() 71 MS_ASSERT(node); in GetTypeName() 80 MS_ASSERT(node); in NC_N11C() 84 MS_ASSERT(node->in_tensors().front()); in NC_N11C() 85 MS_ASSERT(node->out_tensors().front()); in NC_N11C() 94 MS_ASSERT(node); in N11C_NC() [all …]
|
/third_party/mindspore/mindspore/lite/src/runtime/gpu/opencl/ |
D | opencl_wrapper.cc | 255 MS_ASSERT(func != nullptr); in clGetPlatformIDs() 263 MS_ASSERT(func != nullptr); in clGetPlatformInfo() 271 MS_ASSERT(func != nullptr); in clGetDeviceIDs() 279 MS_ASSERT(func != nullptr); in clGetDeviceInfo() 288 MS_ASSERT(func != nullptr); in clCreateContext() 297 MS_ASSERT(func != nullptr); in clCreateContextFromType() 304 MS_ASSERT(func != nullptr); in clRetainContext() 311 MS_ASSERT(func != nullptr); in clReleaseContext() 319 MS_ASSERT(func != nullptr); in clGetContextInfo() 327 MS_ASSERT(func != nullptr); in clCreateProgramWithSource() [all …]
|
/third_party/opencl-headers/src/ |
D | opencl_wrapper.cpp | 238 MS_ASSERT(func != nullptr); in clGetPlatformIDs() 247 MS_ASSERT(func != nullptr); in clGetPlatformInfo() 256 MS_ASSERT(func != nullptr); in clGetDeviceIDs() 265 MS_ASSERT(func != nullptr); in clGetDeviceInfo() 275 MS_ASSERT(func != nullptr); in clCreateContext() 285 MS_ASSERT(func != nullptr); in clCreateContextFromType() 293 MS_ASSERT(func != nullptr); in clRetainContext() 301 MS_ASSERT(func != nullptr); in clReleaseContext() 310 MS_ASSERT(func != nullptr); in clGetContextInfo() 319 MS_ASSERT(func != nullptr); in clCreateProgramWithSource() [all …]
|
/third_party/mindspore/mindspore/lite/tools/converter/legacy_optimizer/fusion/ |
D | mul_add_fusion_pass.cc | 33 MS_ASSERT(graph != nullptr); in AddNewScaleNode() 34 MS_ASSERT(mulNode != nullptr); in AddNewScaleNode() 35 MS_ASSERT(addNode != nullptr); in AddNewScaleNode() 47 MS_ASSERT(addNode->primitive != nullptr); in AddNewScaleNode() 48 MS_ASSERT(addNode->primitive->value.AsAddFusion() != nullptr); in AddNewScaleNode() 62 MS_ASSERT(addNode->primitive != nullptr); in AddNewScaleNode() 63 MS_ASSERT(addNode->primitive->value.AsAddFusion() != nullptr); in AddNewScaleNode() 125 MS_ASSERT(graph != nullptr); in DoFusion() 133 MS_ASSERT(mulPath != nullptr); in DoFusion() 134 MS_ASSERT(addPath != nullptr); in DoFusion() [all …]
|
D | fusion_pass.cc | 73 MS_ASSERT(graph != nullptr); in MatchPatterns() 90 MS_ASSERT(patternOp != nullptr); in MatchPatterns() 97 MS_ASSERT(curPatternOp != nullptr); in MatchPatterns() 116 MS_ASSERT(graph != nullptr); in MatchOnePattern() 117 MS_ASSERT(pattern != nullptr); in MatchOnePattern() 123 MS_ASSERT(outputOp->isTail); in MatchOnePattern() 134 MS_ASSERT(subGraph->nodes.size() > subGraphOutputNodeIdx); in MatchOnePattern() 144 MS_ASSERT(subGraph->nodes.size() > nodeIdx); in MatchOnePattern() 154 MS_ASSERT((subGraph->nodes.size() > preNodeIdx)); in MatchOnePattern() 180 MS_ASSERT(graph != nullptr); in CheckMatch() [all …]
|
/third_party/mindspore/mindspore/lite/src/runtime/kernel/arm/string/ |
D | lsh_projection.cc | 131 MS_ASSERT(feature != nullptr); in GetSignBit() 132 MS_ASSERT(weight != nullptr); in GetSignBit() 133 MS_ASSERT(para != nullptr); in GetSignBit() 134 MS_ASSERT(hash_buff != nullptr); in GetSignBit() 153 MS_ASSERT(hashSeed != nullptr); in LshProjectionSparse() 154 MS_ASSERT(feature != nullptr); in LshProjectionSparse() 155 MS_ASSERT(weight != nullptr); in LshProjectionSparse() 156 MS_ASSERT(output != nullptr); in LshProjectionSparse() 157 MS_ASSERT(para != nullptr); in LshProjectionSparse() 158 MS_ASSERT(hash_buff != nullptr); in LshProjectionSparse() [all …]
|
/third_party/mindspore/mindspore/lite/tools/optimizer/graph/ |
D | slice_prepose_pass.cc | 39 MS_ASSERT(cnode != nullptr); in GetSliceBeginAndSize() 65 MS_ASSERT(cnode != nullptr); in GetCNodeInputShape() 81 MS_ASSERT(abstract_tensor != nullptr && abstract_tensor->shape() != nullptr); in GetCNodeInputShape() 86 MS_ASSERT(param != nullptr); in GetDefaultParamShape() 87 MS_ASSERT(param->has_default()); in GetDefaultParamShape() 99 MS_ASSERT(param_value != nullptr); in GetDefaultParamShape() 107 MS_ASSERT(nodePtr != nullptr); in IsScalarNode() 110 MS_ASSERT(tensor != nullptr); in IsScalarNode() 148 MS_ASSERT(node != nullptr); in GetTransposePerm() 161 MS_ASSERT(perm_param != nullptr); in GetTransposePerm() [all …]
|
D | redundant_op_remove_pass.cc | 32 MS_ASSERT(func_graph != nullptr && cnode != nullptr); in ProcessInputIsMonad() 34 MS_ASSERT(first_input != nullptr); in ProcessInputIsMonad() 40 MS_ASSERT(seconde_input != nullptr); in ProcessInputIsMonad() 49 MS_ASSERT(value_node->value() != nullptr); in ProcessInputIsMonad() 57 MS_ASSERT(value_node->value() != nullptr); in ProcessInputIsMonad() 67 MS_ASSERT(manager != nullptr); in ProcessInputIsMonad() 77 MS_ASSERT(func_graph != nullptr && cnode != nullptr); in ProcessDependencyWithTwoNodes() 80 MS_ASSERT(pre_node != nullptr); in ProcessDependencyWithTwoNodes() 81 MS_ASSERT(post_node != nullptr); in ProcessDependencyWithTwoNodes() 95 MS_ASSERT(manager != nullptr); in ProcessDependencyWithTwoNodes() [all …]
|
D | infershape_pass.cc | 26 MS_ASSERT(cnode != nullptr && format != nullptr); in GetCNodeCertainInputFormat() 41 MS_ASSERT(real_cnode != nullptr); in GetCNodeCertainInputFormat() 46 MS_ASSERT(real_cnode != nullptr); in GetCNodeCertainInputFormat() 76 MS_ASSERT(sub_graph != nullptr && certain_input != nullptr); in ModifySubGraphInputCNodeFormat() 78 MS_ASSERT(manager != nullptr); in ModifySubGraphInputCNodeFormat() 124 MS_ASSERT(func_graph != nullptr); in JudgeAllOpsCanInfer() 132 MS_ASSERT(cnode != nullptr); in JudgeAllOpsCanInfer() 170 MS_ASSERT(func_graph != nullptr); in InferProcess() 177 MS_ASSERT(cnode != nullptr); in InferProcess() 235 MS_ASSERT(cnode != nullptr && sub_graph != nullptr); in SetSubGraphInput() [all …]
|
D | group_depthwise_op_convert_pass.cc | 46 MS_ASSERT(conv_cnode != nullptr); in Run() 48 MS_ASSERT(prim_node != nullptr); in Run() 50 MS_ASSERT(prim_value_node != nullptr && prim_value_node->value != nullptr); in Run() 66 MS_ASSERT(data_shape_ptr != nullptr); in Run() 78 MS_ASSERT(weight_shape_ptr != nullptr); in Run() 90 MS_ASSERT(conv_cnode->inputs().size() > kConvWeightIndex); in Run() 92 MS_ASSERT(weight_node != nullptr); in Run() 98 MS_ASSERT(weight_value->tensor_type() == TypeId::kNumberTypeFloat32 || in Run()
|
D | unused_transpose_node_remove_pass.cc | 32 MS_ASSERT(node != nullptr); in GetTransposePerm() 45 MS_ASSERT(perm_param != nullptr); in GetTransposePerm() 66 MS_ASSERT(func_graph != nullptr); in Run() 68 MS_ASSERT(manager != nullptr); in Run() 76 MS_ASSERT(transpose_cnode != nullptr); in Run() 90 MS_ASSERT(conv_node != nullptr); in Run() 95 MS_ASSERT(transpose_cnode != nullptr); in Run()
|
/third_party/mindspore/mindspore/lite/tools/converter/parser/onnx/ |
D | onnx_inputs_adjust.cc | 32 MS_ASSERT(func_graph != nullptr); in AddAttrToInput() 33 MS_ASSERT(cnode != nullptr); in AddAttrToInput() 39 MS_ASSERT(primitive_c != nullptr); in AddAttrToInput() 73 MS_ASSERT(func_graph != nullptr); in ReplaceInt64ParameterNode() 74 MS_ASSERT(param_node != nullptr); in ReplaceInt64ParameterNode() 96 MS_ASSERT(default_value != nullptr); in ReplaceInt64ParameterNode() 117 MS_ASSERT(param_node != nullptr); in ValidParameterNode() 122 MS_ASSERT(tensor_info != nullptr); in ValidParameterNode() 127 MS_ASSERT(func_graph != nullptr); in ReplaceConstant() 128 MS_ASSERT(cnode != nullptr); in ReplaceConstant() [all …]
|
D | onnx_conv_base_parser.cc | 35 MS_ASSERT(dilation != nullptr && conv1d != nullptr); in ParseDilations() 54 MS_ASSERT(kernels != nullptr && conv1d != nullptr); in ParseKernels() 73 MS_ASSERT(kernels != nullptr && conv1d != nullptr); in ParseKernelShape() 92 MS_ASSERT(pads != nullptr && conv1d != nullptr); in ParsePads() 115 MS_ASSERT(strides != nullptr && conv1d != nullptr); in ParseStrides() 136 MS_ASSERT(kernels != nullptr); in ParseVecAttr() 137 MS_ASSERT(strides != nullptr); in ParseVecAttr() 138 MS_ASSERT(dilation != nullptr); in ParseVecAttr() 139 MS_ASSERT(pads != nullptr); in ParseVecAttr() 140 MS_ASSERT(conv1d != nullptr); in ParseVecAttr()
|
/third_party/mindspore/mindspore/lite/tools/optimizer/fusion/ |
D | conv_bn_fusion.cc | 48 MS_ASSERT(bn_var_node != nullptr && trans_scale != nullptr); in CalTransale() 50 MS_ASSERT(bn_var_param != nullptr); in CalTransale() 52 MS_ASSERT(bn_var_tensor != nullptr); in CalTransale() 73 MS_ASSERT(bn_scale_param != nullptr); in CalTransale() 75 MS_ASSERT(bn_scale_tensor != nullptr); in CalTransale() 87 MS_ASSERT(bn_mean_node != nullptr && trans_scale != nullptr && trans_bias != nullptr); in CalTransBias() 89 MS_ASSERT(bn_mean_param != nullptr); in CalTransBias() 91 MS_ASSERT(bn_mean_tensor != nullptr); in CalTransBias() 101 MS_ASSERT(bn_bias_param != nullptr); in CalTransBias() 103 MS_ASSERT(bn_bias_tensor != nullptr); in CalTransBias() [all …]
|
D | conv_conv_fusion.cc | 65 MS_ASSERT(down_bias_param != nullptr); in GenNewConvBias() 71 MS_ASSERT(down_bias_param->data_c() != nullptr); in GenNewConvBias() 75 MS_ASSERT(up_bias_param != nullptr); in GenNewConvBias() 82 MS_ASSERT(down_weight_param != nullptr && down_weight_param->data_c() != nullptr); in GenNewConvBias() 85 MS_ASSERT(up_bias_param->data_c() != nullptr); in GenNewConvBias() 93 MS_ASSERT(tensor_info->data_c() != nullptr); in GenNewConvBias() 119 MS_ASSERT(down_weight_node != nullptr && up_weight_node != nullptr && new_weight_node != nullptr); in GenNewConvWeight() 121 MS_ASSERT(down_weight_param != nullptr); in GenNewConvWeight() 122 MS_ASSERT(down_weight_param->data_c() != nullptr); in GenNewConvWeight() 125 MS_ASSERT(up_weight_param != nullptr); in GenNewConvWeight() [all …]
|
D | norm_fusion.cc | 32 MS_ASSERT(axes != nullptr); in GetReduceAxes() 70 MS_ASSERT(equiv != nullptr && input_prim != nullptr && input_axes != nullptr && axes != nullptr); in IsReduceNode() 72 MS_ASSERT(reduce_value != nullptr); in IsReduceNode() 108 MS_ASSERT(func_graph != nullptr); in CreateNormNode() 109 MS_ASSERT(equiv != nullptr); in CreateNormNode() 128 MS_ASSERT(input_node != nullptr); in CreateNormNode() 131 MS_ASSERT(gamma_node != nullptr); in CreateNormNode() 134 MS_ASSERT(beta_node != nullptr); in CreateNormNode() 143 MS_ASSERT(func_graph != nullptr); in GetNormTypeAndAxis() 144 MS_ASSERT(input_cnode != nullptr); in GetNormTypeAndAxis() [all …]
|
D | tflite_lstm_cell_fusion.cc | 185 MS_ASSERT(primitive_vars != nullptr); in GetCondGraphPattern() 313 MS_ASSERT(func_graph != nullptr); in MatchGraph() 314 MS_ASSERT(pattern != nullptr); in MatchGraph() 327 MS_ASSERT(func_graph != nullptr); in CheckReferencedOutputs() 328 MS_ASSERT(while_cnode != nullptr); in CheckReferencedOutputs() 358 MS_ASSERT(func_graph != nullptr); in CheckSubGraph() 359 MS_ASSERT(pattern != nullptr); in CheckSubGraph() 360 MS_ASSERT(primitive_vars != nullptr); in CheckSubGraph() 361 MS_ASSERT(anf_sub_graph != nullptr); in CheckSubGraph() 374 MS_ASSERT(func_graph != nullptr); in CheckBodyGraph() [all …]
|
D | conv_transform_fusion.cc | 33 MS_ASSERT(conv_node != nullptr); in GetOutChannels() 35 MS_ASSERT(value_node != nullptr); in GetOutChannels() 38 MS_ASSERT(conv_prim != nullptr); in GetOutChannels() 45 MS_ASSERT(conv_prim != nullptr); in GetOutChannels() 56 MS_ASSERT(dst_weight != nullptr && conv_weight != nullptr && scale_weight != nullptr); in GenerateNewWeightConv2D() 70 MS_ASSERT(dst_weight != nullptr && scale_weight != nullptr && weight_tensor != nullptr); in GenerateNewWeightConv2DTranspose() 74 MS_ASSERT(weight_tensor->data_c() != nullptr); in GenerateNewWeightConv2DTranspose() 148 MS_ASSERT(transform_node != nullptr); in GenTransParam() 175 MS_ASSERT(func_graph != nullptr && conv_node != nullptr); in GenNewConvTensor() 176 MS_ASSERT(trans_scale != nullptr && trans_bias != nullptr); in GenNewConvTensor() [all …]
|
/third_party/mindspore/mindspore/lite/src/ |
D | lite_kernel.h | 116 MS_ASSERT(kernel_ != nullptr); in Prepare() 121 MS_ASSERT(kernel_ != nullptr); in Init() 129 MS_ASSERT(kernel_ != nullptr); in ReSize() 134 MS_ASSERT(kernel_ != nullptr); in op_parameter() 142 MS_ASSERT(kernel_ != nullptr); in name() 147 MS_ASSERT(kernel_ != nullptr); in set_name() 152 MS_ASSERT(kernel_ != nullptr); in Train() 160 MS_ASSERT(kernel_ != nullptr); in IsTrain() 168 MS_ASSERT(kernel_ != nullptr); in Eval() 176 MS_ASSERT(kernel_ != nullptr); in IsEval() [all …]
|
D | scheduler.cc | 83 MS_ASSERT(tensor != nullptr); in CastConstTensorData() 84 MS_ASSERT(tensor->IsConst()); in CastConstTensorData() 85 MS_ASSERT(tensor->data_type() == kNumberTypeFloat32 || tensor->data_type() == kNumberTypeFloat16); in CastConstTensorData() 86 MS_ASSERT(dst_data_type == kNumberTypeFloat32 || dst_data_type == kNumberTypeFloat16); in CastConstTensorData() 93 MS_ASSERT(origin_data != nullptr); in CastConstTensorData() 106 MS_ASSERT(new_tensor_data != nullptr); in CastConstTensorData() 124 MS_ASSERT(kernel != nullptr); in CastKernelWeight() 125 MS_ASSERT(kernel->subgraph_type() == kernel::kNotSubGraph); in CastKernelWeight() 130 MS_ASSERT(tensor != nullptr); in CastKernelWeight() 172 MS_ASSERT(tensor->data() == nullptr); in CopyConstTensorData() [all …]
|
/third_party/mindspore/mindspore/lite/tools/common/ |
D | graph_util.cc | 86 MS_ASSERT(node.inputIndex.size() > inputIndexIdx); in GetInputNodeIdx() 121 MS_ASSERT(node.outputIndex.size() > outputIndexIdx); in GetOutputNodeIdx() 165 MS_ASSERT(graphT != nullptr); in IsolateNode() 166 MS_ASSERT(node != nullptr); in IsolateNode() 190 MS_ASSERT(graphT->allTensors.size() > inDataTensorIdx); in IsolateNode() 196 MS_ASSERT(graphT->nodes.size() > postNodeIdx); in IsolateNode() 215 MS_ASSERT(graph != nullptr); in IsolateOneWayNode() 220 MS_ASSERT(graphT != nullptr); in IsolateOneWayNode() 244 MS_ASSERT(graphT->allTensors.size() > inDataTensorIdx); in IsolateOneWayNode() 245 MS_ASSERT(graphT->allTensors.at(inDataTensorIdx) != nullptr); in IsolateOneWayNode() [all …]
|
/third_party/mindspore/mindspore/lite/tools/optimizer/parallel/ |
D | multi_conv_info.cc | 67 MS_ASSERT(conv_cnode != nullptr); in CheckSplitValid() 69 MS_ASSERT(conv_prim != nullptr); in CheckSplitValid() 123 MS_ASSERT(curr_node != nullptr); in GetMultiConvNodes() 149 MS_ASSERT(node != nullptr); in MultiConvNHSplit() 178 MS_ASSERT(ori_node != nullptr && outputs_node != nullptr); in SplitSingleConv() 180 MS_ASSERT(ori_conv_cnode != nullptr); in SplitSingleConv() 182 MS_ASSERT(ori_attr != nullptr); in SplitSingleConv() 210 MS_ASSERT(ori_conv_node != nullptr && conv_inputs != nullptr); in AdJustInputs() 212 MS_ASSERT(ori_conv_cnode != nullptr); in AdJustInputs() 223 MS_ASSERT(ori_conv_node != nullptr && outputs_node != nullptr); in CreateNewConvNode() [all …]
|
/third_party/mindspore/mindspore/lite/tools/converter/quantizer/quant_helper/ |
D | concat_quant_param_propogator.cc | 37 MS_ASSERT(output_inited_quant_params_ == 0); in PropogateQuantParams() 43 MS_ASSERT(graph->allTensors.size() > index); in PropogateQuantParams() 45 MS_ASSERT(in_tensor != nullptr); in PropogateQuantParams() 54 MS_ASSERT(narrow_range == quantParam->narrowRange); in PropogateQuantParams() 55 MS_ASSERT(num_bits == quantParam->numBits); in PropogateQuantParams() 71 MS_ASSERT(graph->allTensors.size() > node.outputIndex.front()); in PropogateQuantParams() 73 MS_ASSERT(out_tensor != nullptr); in PropogateQuantParams()
|
D | carry_data_quant_param_propogator.cc | 32 MS_ASSERT(graph->allTensors.size() > node.outputIndex.at(0)); in PropogateQuantParams() 39 MS_ASSERT(graph->allTensors.size() > node.inputIndex.at(0)); in PropogateQuantParams() 41 MS_ASSERT(in_tensor != nullptr); in PropogateQuantParams() 51 MS_ASSERT(graph->allTensors.size() > node.inputIndex.at(0)); in PropogateQuantParams() 53 MS_ASSERT(in_tensor != nullptr); in PropogateQuantParams() 60 MS_ASSERT(graph->allTensors.size() > i); in PropogateQuantParams() 62 MS_ASSERT(out_tensor != nullptr); in PropogateQuantParams()
|
/third_party/mindspore/mindspore/lite/src/runtime/kernel/arm/int8/ |
D | squeeze_int8.cc | 57 MS_ASSERT(in_quant_args.size() > 0); in Init() 61 MS_ASSERT(this->out_tensors_.size() == 1); in Init() 63 MS_ASSERT(output_tensor != nullptr); in Init() 65 MS_ASSERT(quant_params.size() == 1); in Init() 107 MS_ASSERT(input_tensor); in DoExecute() 109 MS_ASSERT(out_tensor); in DoExecute() 111 MS_ASSERT(input_data); in DoExecute() 113 MS_ASSERT(output_data); in DoExecute()
|