/third_party/mindspore/tests/ut/cpp/pre_activate/ascend/ir_fusion/ |
D | layer_norm_beta_gamma_backprop_fusion_test.cc | 47 …builder.SetInputsFormat({kOpFormat_DEFAULT, kOpFormat_DEFAULT, kOpFormat_DEFAULT, kOpFormat_DEFAUL… in Query() 48 builder.SetOutputsFormat({kOpFormat_DEFAULT, kOpFormat_DEFAULT}); in Query() 77 builder1.SetInputsFormat({kOpFormat_DEFAULT}); in TEST_F() 78 builder1.SetOutputsFormat({kOpFormat_DEFAULT}); in TEST_F() 96 …builder2.SetInputsFormat({kOpFormat_DEFAULT, kOpFormat_DEFAULT, kOpFormat_DEFAULT, kOpFormat_DEFAU… in TEST_F() 97 builder2.SetOutputsFormat({kOpFormat_DEFAULT, kOpFormat_DEFAULT}); in TEST_F() 138 builder1.SetInputsFormat({kOpFormat_DEFAULT}); in TEST_F() 139 builder1.SetOutputsFormat({kOpFormat_DEFAULT}); in TEST_F() 155 …builder2.SetInputsFormat({kOpFormat_DEFAULT, kOpFormat_DEFAULT, kOpFormat_DEFAULT, kOpFormat_DEFAU… in TEST_F() 156 builder2.SetOutputsFormat({kOpFormat_DEFAULT, kOpFormat_DEFAULT}); in TEST_F() [all …]
|
/third_party/mindspore/tests/ut/cpp/pre_activate/pass/ |
D | common_subexpression_elimination_test.cc | 116 CreateKernelBuildInfo({kOpFormat_DEFAULT, kOpFormat_DEFAULT}, {kOpFormat_DEFAULT}, in TEST_F() 154 CreateKernelBuildInfo({kOpFormat_DEFAULT, kOpFormat_DEFAULT}, {kOpFormat_DEFAULT}, in TEST_F() 158 CreateKernelBuildInfo({kOpFormat_DEFAULT, kOpFormat_DEFAULT}, {kOpFormat_DEFAULT}, in TEST_F() 165 CreateKernelBuildInfo({kOpFormat_DEFAULT, kOpFormat_DEFAULT}, {kOpFormat_DEFAULT}, in TEST_F() 169 CreateKernelBuildInfo({kOpFormat_DEFAULT, kOpFormat_NC1HWC0}, {kOpFormat_DEFAULT}, in TEST_F() 176 CreateKernelBuildInfo({kOpFormat_DEFAULT, kOpFormat_DEFAULT}, {kOpFormat_DEFAULT}, in TEST_F() 180 CreateKernelBuildInfo({kOpFormat_DEFAULT, kOpFormat_NC1HWC0}, {kOpFormat_DEFAULT}, in TEST_F() 187 CreateKernelBuildInfo({kOpFormat_DEFAULT, kOpFormat_DEFAULT}, {kOpFormat_DEFAULT}, in TEST_F() 191 CreateKernelBuildInfo({kOpFormat_DEFAULT, kOpFormat_DEFAULT}, {kOpFormat_DEFAULT}, in TEST_F()
|
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/graph_kernel/expanders/ |
D | bias_add.cc | 31 support_format->AddFormat({kOpFormat_DEFAULT, kOpFormat_DEFAULT}); in BiasAdd() 32 support_format->AddFormat({kOpFormat_NCHW, kOpFormat_DEFAULT}); in BiasAdd() 33 support_format->AddFormat({kOpFormat_NHWC, kOpFormat_DEFAULT}); in BiasAdd() 47 } else if (input_x->format == kOpFormat_DEFAULT) { in Expand()
|
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/ascend/format_type/ |
D | rectify_do_mask_kernel_info.cc | 89 std::string convert_format = kOpFormat_DEFAULT; in GetConvertFormat() 92 return kOpFormat_DEFAULT; in GetConvertFormat() 94 …if (format_counter.size() == kFormatCount && format_counter.find(kOpFormat_DEFAULT) == format_coun… in GetConvertFormat() 95 return kOpFormat_DEFAULT; in GetConvertFormat() 134 if (do_mask_input_format != kOpFormat_DEFAULT) { in RectifyKernelInfoInPynativeProcess() 138 builder->SetInputFormat(kOpFormat_DEFAULT, 0); in RectifyKernelInfoInPynativeProcess() 139 builder->SetOutputFormat(kOpFormat_DEFAULT, 0); in RectifyKernelInfoInPynativeProcess()
|
D | check_consistency.cc | 51 if (pre_output_format == kOpFormat_DEFAULT || selected_input_format == kOpFormat_DEFAULT) { in CheckFormatForConsistency() 52 …string checking_format = (pre_output_format == kOpFormat_DEFAULT) ? selected_input_format : pre_ou… in CheckFormatForConsistency()
|
D | convert_cast_format.cc | 84 string convert_format = kOpFormat_DEFAULT; in ChangeCastFormat() 85 if (cast_input_format == kOpFormat_DEFAULT) { in ChangeCastFormat() 89 if (format_counter.size() == 1 && format_counter.begin()->first == kOpFormat_DEFAULT) { in ChangeCastFormat()
|
D | trans_op_format_refine.cc | 41 if (in_format == kOpFormat_DEFAULT && k3DFormatSet.find(out_format) != k3DFormatSet.end()) { in Process() 47 if (out_format == kOpFormat_DEFAULT && k3DFormatSet.find(in_format) != k3DFormatSet.end()) { in Process()
|
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/cpu/ |
D | insert_format_transform_op.cc | 103 …alCNodeKernel(used_node) ? AnfAlgo::GetInputFormat(used_node, used_node_index) : kOpFormat_DEFAULT; in ProcessForTupleItem() 108 SetTransposeOpBuildInfo(transpose_format, kOpFormat_DEFAULT, transpose_op); in ProcessForTupleItem() 115 if ((inputs_format[i] == kOpFormat_DEFAULT) || (inputs_format[i] == origin_format)) { in InsertTransformOpForInput() 131 SetTransposeOpBuildInfo(kOpFormat_DEFAULT, inputs_format[i], transpose_op); in InsertTransformOpForInput() 139 if ((outputs_format[i] == kOpFormat_DEFAULT) || (outputs_format[i] == origin_format)) { in InsertTransformOpForOutput() 162 …alCNodeKernel(used_node) ? AnfAlgo::GetInputFormat(used_node, used_node_index) : kOpFormat_DEFAULT; in InsertTransformOpForOutput() 167 SetTransposeOpBuildInfo(outputs_format[i], kOpFormat_DEFAULT, transpose_op); in InsertTransformOpForOutput() 191 if (origin_format == kOpFormat_DEFAULT) { in Run()
|
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/ascend/ir_fission/ |
D | transdata_split.cc | 26 {kOpFormat_C1HWNCoC0, kOpFormat_DEFAULT}, {kOpFormat_DEFAULT, kOpFormat_FRACTAL_ZN_LSTM}, 27 {kOpFormat_FRACTAL_ZN_LSTM, kOpFormat_DEFAULT}, {kOpFormat_DEFAULT, kOpFormat_C1HWNCoC0}}; 74 if (output_format == kOpFormat_DEFAULT || output_format == kOpFormat_NCHW) { in DoSplit()
|
D | topk_split.cc | 39 tensor::DeviceInfo device_info{kOpFormat_DEFAULT, tensor_type}; in CreateTensor() 76 builder1.SetOutputsFormat({kOpFormat_DEFAULT}); in CreateValueNode() 87 builder.SetInputsFormat({kOpFormat_DEFAULT, kOpFormat_DEFAULT}); in CreateKernelBuildInfo() 88 builder.SetOutputsFormat({kOpFormat_DEFAULT, kOpFormat_DEFAULT}); in CreateKernelBuildInfo()
|
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/hccl/ |
D | hccl_kernel_metadata.cc | 40 return kOpFormat_DEFAULT; in GetKernelFormat() 43 return kOpFormat_DEFAULT; in GetKernelFormat() 53 return kOpFormat_DEFAULT; in GetKernelFormat() 57 return kOpFormat_DEFAULT; in GetKernelFormat() 60 return kOpFormat_DEFAULT; in GetKernelFormat()
|
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/gpu/ |
D | insert_format_transform_op.cc | 133 if (origin_data_format == kOpFormat_DEFAULT) { in Process() 140 if ((inputs_format[i] != kOpFormat_DEFAULT) && (inputs_format[i] != origin_data_format)) { in Process() 145 SetTransposeOpBuildInfo(kOpFormat_DEFAULT, inputs_format[i], input_transpose_op); in Process() 152 if ((outputs_format[i] != kOpFormat_DEFAULT) && (outputs_format[i] != origin_data_format)) { in Process() 167 SetTransposeOpBuildInfo(outputs_format[i], kOpFormat_DEFAULT, output_transpose_op); in Process() 186 SetTransposeOpBuildInfo(transpose_format, kOpFormat_DEFAULT, transpose_op); in ProcessForTupleItem()
|
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/tbe/tbe_kernel_select/ |
D | tbe_kernel_broadcast_selecter.cc | 65 AssignSupportFormat(kOpFormat_DEFAULT, support_format); in GetShapeInfo() 84 input_support_format.emplace_back(kOpFormat_DEFAULT); in IsBroadCastSupport5HD() 132 input_support_format.emplace_back(kOpFormat_DEFAULT); in IsBroadCastSupportFracZ() 166 input_support_format.emplace_back(kOpFormat_DEFAULT); in IsBroadCastSupportC1HWNCoC0() 215 input_support_format.emplace_back(kOpFormat_DEFAULT); in IsBroadCastSupportFracNZ() 349 output_support_item->emplace_back(kOpFormat_DEFAULT); in GenOutputSupportFormat()
|
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/graph_kernel/ |
D | substitute_dropout.cc | 60 uniform_real_kernel_info_builder->SetInputsFormat({kOpFormat_DEFAULT}); in PreProcess() 62 uniform_real_kernel_info_builder->SetOutputsFormat({kOpFormat_DEFAULT}); in PreProcess() 76 …pout_kernel_info_builder->SetInputsFormat({old_kernel_info->GetInputFormat(0), kOpFormat_DEFAULT}); in PreProcess()
|
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/graph_kernel/model/ |
D | op_node.cc | 63 if (inputs[j]->format != kOpFormat_DEFAULT && res != kOpFormat_DEFAULT) { in CheckFormat() 66 if (res == kOpFormat_DEFAULT) { in CheckFormat() 260 …return input->format == kOpFormat_DEFAULT || input->format == kOpFormat_NHWC || input->format == k… in InferShape() 265 return input->format == kOpFormat_DEFAULT || input->format == kOpFormat_NHWC || in InferShape() 274 …_if(inputs.begin(), inputs.end(), [](const NodePtr &i) { return i->format != kOpFormat_DEFAULT; }); in InferFormat() 275 return it == inputs.end() ? kOpFormat_DEFAULT : (*it)->format; in InferFormat() 449 if (inputs[0]->shape.size() != 4) return kOpFormat_DEFAULT; in InferFormat() 453 if (ori_format == kOpFormat_DEFAULT || ori_format == kOpFormat_NCHW) { in InferFormat() 458 if (perm == nhwc2nchw) return kOpFormat_DEFAULT; in InferFormat() 460 return kOpFormat_DEFAULT; in InferFormat()
|
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/ascend/ir_fusion/ |
D | transposed_update_fusion.cc | 32 tensor::DeviceInfo device_info{kOpFormat_DEFAULT, tensor_type}; in CreatePermTensor() 59 op_builder.SetOutputsFormat({kOpFormat_DEFAULT}); in CreatePermValueNode() 98 builder->SetInputsFormat({input_format, kOpFormat_DEFAULT}); in Process()
|
/third_party/mindspore/mindspore/ccsrc/runtime/device/cpu/ |
D | kernel_select_cpu.h | 41 KernelAttr &AddInputAttr(const TypeId &ms_type, const std::string &format = kOpFormat_DEFAULT) { 46 KernelAttr &AddOutputAttr(const TypeId &ms_type, const std::string &format = kOpFormat_DEFAULT) {
|
/third_party/mindspore/tests/ut/cpp/pre_activate/ascend/enhancer/ |
D | insert_tensor_move_for_getnext_test.cc | 49 builder.SetOutputsFormat({kOpFormat_DEFAULT, kOpFormat_DEFAULT}); in TEST_F()
|
/third_party/mindspore/tests/ut/cpp/pre_activate/ascend/format_type/ |
D | remove_internal_output_test.cc | 54 builder.SetInputsFormat({kOpFormat_DEFAULT, kOpFormat_DEFAULT}); in GetSingleOutputGraph() 85 builder.SetInputsFormat({kOpFormat_DEFAULT}); in GetMutilpleOutputGraph() 104 builder.SetOutputsFormat({kOpFormat_DEFAULT}); in SelectKernel()
|
/third_party/mindspore/mindspore/ccsrc/runtime/device/ |
D | kernel_adjust.cc | 576 {kOpFormat_DEFAULT, kOpFormat_DEFAULT}, {TypeId::kNumberTypeInt32, TypeId::kNumberTypeInt32}); in CreateStreamSwitchOp() 609 {kOpFormat_DEFAULT, kOpFormat_DEFAULT}, {TypeId::kNumberTypeInt32, TypeId::kNumberTypeInt32}); in CreateStreamActiveOp() 642 selected_kernel_builder.SetInputsFormat({kOpFormat_DEFAULT}); in CreateEndOfSequenceOP() 649 selected_kernel_builder.SetOutputsFormat({kOpFormat_DEFAULT}); in CreateEndOfSequenceOP() 676 {kOpFormat_DEFAULT, kOpFormat_DEFAULT}, {TypeId::kNumberTypeInt32, TypeId::kNumberTypeInt32}); in CreateStreamAssignAddnOP() 677 selected_kernel_builder.SetOutputsFormat({kOpFormat_DEFAULT}); in CreateStreamAssignAddnOP() 904 selected_kernel_builder.SetInputsFormat({kOpFormat_DEFAULT}); in CreateNPUGetFloatStatus() 909 selected_kernel_builder.SetOutputsFormat({kOpFormat_DEFAULT}); in CreateNPUGetFloatStatus() 927 selected_kernel_builder.SetInputsFormat({kOpFormat_DEFAULT}); in CreateNPUClearStatus() 932 selected_kernel_builder.SetOutputsFormat({kOpFormat_DEFAULT}); in CreateNPUClearStatus() [all …]
|
/third_party/mindspore/tests/ut/cpp/session/ |
D | kernel_graph_test.cc | 55 EXPECT_EQ(AnfAlgo::GetOutputFormat(new_value, 0), kOpFormat_DEFAULT); in TEST_F() 66 EXPECT_EQ(AnfAlgo::GetOutputFormat(new_paramter, 0), kOpFormat_DEFAULT); in TEST_F() 79 EXPECT_EQ(AnfAlgo::GetOutputFormat(new_non_weight_parameter, 0), kOpFormat_DEFAULT); in TEST_F() 93 EXPECT_EQ(AnfAlgo::GetOutputFormat(new_weight_parameter_node, 0), kOpFormat_DEFAULT); in TEST_F()
|
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/host/ |
D | host_kernel_metadata.cc | 45 inputs_format.emplace_back(kOpFormat_DEFAULT); in HostMetadataInfo() 52 outputs_format.emplace_back(kOpFormat_DEFAULT); in HostMetadataInfo()
|
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/aicpu/ |
D | aicpu_kernel_metadata.cc | 60 inputs_format.emplace_back(kOpFormat_DEFAULT); in AicpuMetadataInfoForSpecialNodes() 68 outputs_format.emplace_back(kOpFormat_DEFAULT); in AicpuMetadataInfoForSpecialNodes()
|
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/rts/ |
D | rt_kernel_info.cc | 72 …kernel_build_info_builder->SetInputsFormat(std::vector<std::string>(input_num, kOpFormat_DEFAULT)); in GetRtKelInfo() 79 kernel_build_info_builder->SetOutputsFormat({kOpFormat_DEFAULT}); in GetRtKelInfo()
|
/third_party/mindspore/mindspore/ccsrc/runtime/device/gpu/ |
D | kernel_info_setter.h | 97 KernelAttr &AddInputAttr(const TypeId &ms_type, const std::string &format = kOpFormat_DEFAULT) { 102 KernelAttr &AddOutputAttr(const TypeId &ms_type, const std::string &format = kOpFormat_DEFAULT) {
|