Home
last modified time | relevance | path

Searched refs:kOpFormat_DEFAULT (Results 1 – 25 of 87) sorted by relevance

1234

/third_party/mindspore/tests/ut/cpp/pre_activate/ascend/ir_fusion/
Dlayer_norm_beta_gamma_backprop_fusion_test.cc47 …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/
Dcommon_subexpression_elimination_test.cc116 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/
Dbias_add.cc31 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/
Drectify_do_mask_kernel_info.cc89 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()
Dcheck_consistency.cc51 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()
Dconvert_cast_format.cc84 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()
Dtrans_op_format_refine.cc41 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/
Dinsert_format_transform_op.cc103 …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/
Dtransdata_split.cc26 {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()
Dtopk_split.cc39 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/
Dhccl_kernel_metadata.cc40 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/
Dinsert_format_transform_op.cc133 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/
Dtbe_kernel_broadcast_selecter.cc65 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/
Dsubstitute_dropout.cc60 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/
Dop_node.cc63 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/
Dtransposed_update_fusion.cc32 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/
Dkernel_select_cpu.h41 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/
Dinsert_tensor_move_for_getnext_test.cc49 builder.SetOutputsFormat({kOpFormat_DEFAULT, kOpFormat_DEFAULT}); in TEST_F()
/third_party/mindspore/tests/ut/cpp/pre_activate/ascend/format_type/
Dremove_internal_output_test.cc54 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/
Dkernel_adjust.cc576 {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/
Dkernel_graph_test.cc55 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/
Dhost_kernel_metadata.cc45 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/
Daicpu_kernel_metadata.cc60 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/
Drt_kernel_info.cc72 …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/
Dkernel_info_setter.h97 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) {

1234