Home
last modified time | relevance | path

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

/third_party/mindspore/mindspore/ccsrc/backend/optimizer/cpu/
Dinsert_format_transform_op.cc113 auto inputs_format = AnfAlgo::GetAllInputFormats(node); in InsertTransformOpForInput() local
114 for (size_t i = 0; i < inputs_format.size(); ++i) { in InsertTransformOpForInput()
115 if ((inputs_format[i] == kOpFormat_DEFAULT) || (inputs_format[i] == origin_format)) { in InsertTransformOpForInput()
119 if (inputs_format[i] == prev_input_format) { in InsertTransformOpForInput()
131 SetTransposeOpBuildInfo(kOpFormat_DEFAULT, inputs_format[i], transpose_op); in InsertTransformOpForInput()
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/gpu/
Dinsert_format_transform_op.cc138 auto inputs_format = AnfAlgo::GetAllInputFormats(node); in Process() local
139 for (size_t i = 0; i < inputs_format.size(); i++) { in Process()
140 if ((inputs_format[i] != kOpFormat_DEFAULT) && (inputs_format[i] != origin_data_format)) { in Process()
143 auto input_transpose_perm = TransposeAxis(origin_data_format, inputs_format[i]); in Process()
145 SetTransposeOpBuildInfo(kOpFormat_DEFAULT, inputs_format[i], input_transpose_op); in Process()
Dadd_relu_v2_fusion.cc31 std::vector<std::string> inputs_format; in GenerateKernelBuildInfo() local
40 inputs_format.push_back(kOpFormat_DEFAULT); in GenerateKernelBuildInfo()
48 builder.SetInputsFormat(inputs_format); in GenerateKernelBuildInfo()
Dmatmul_biasadd_fusion.cc31 std::vector<std::string> inputs_format; in GenerateKernelBuildInfo() local
40 inputs_format.push_back(kOpFormat_DEFAULT); in GenerateKernelBuildInfo()
48 builder.SetInputsFormat(inputs_format); in GenerateKernelBuildInfo()
Dadd_relu_grad_v2_fusion.cc31 std::vector<std::string> inputs_format; in GenerateKernelBuildInfo() local
40 inputs_format.push_back(kOpFormat_DEFAULT); in GenerateKernelBuildInfo()
48 builder.SetInputsFormat(inputs_format); in GenerateKernelBuildInfo()
Drelu_v2_pass.cc44 std::vector<std::string> inputs_format; in GenerateKernelBuildInfo() local
53 inputs_format.push_back(kOpFormat_DEFAULT); in GenerateKernelBuildInfo()
61 builder.SetInputsFormat(inputs_format); in GenerateKernelBuildInfo()
Dadam_fusion.cc31 std::vector<std::string> inputs_format; in GenerateKernelBuildInfo() local
41 inputs_format.push_back(kOpFormat_DEFAULT); in GenerateKernelBuildInfo()
49 builder.SetInputsFormat(inputs_format); in GenerateKernelBuildInfo()
Dadam_weight_decay_fusion.cc31 std::vector<std::string> inputs_format; in GenerateKernelBuildInfo() local
41 inputs_format.push_back(kOpFormat_DEFAULT); in GenerateKernelBuildInfo()
49 builder.SetInputsFormat(inputs_format); in GenerateKernelBuildInfo()
Dprint_reduce_fusion.cc30 std::vector<std::string> inputs_format; in GenerateKernelBuildInfo() local
38 inputs_format.push_back(kOpFormat_DEFAULT); in GenerateKernelBuildInfo()
47 builder.SetInputsFormat(inputs_format); in GenerateKernelBuildInfo()
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/graph_kernel/
Dreorder_ops.cc122 info_builder.SetInputsFormat(node_io_info.inputs_format); in SetNodeInfo()
182 new_inputs_info->inputs_format.resize(0); in SetTypeInsensitiveNodeInputsInfo()
188 new_inputs_info->inputs_format.push_back(AnfAlgo::GetInputFormat(node, data_idx)); in SetTypeInsensitiveNodeInputsInfo()
192 new_inputs_info->inputs_format.push_back(AnfAlgo::GetInputFormat(input_at_indexes[idx], 0)); in SetTypeInsensitiveNodeInputsInfo()
195 … new_inputs_info->inputs_format.push_back(AnfAlgo::GetOutputFormat(input_at_indexes[idx], 0)); in SetTypeInsensitiveNodeInputsInfo()
238 cast_io_info.inputs_format.push_back(AnfAlgo::GetInputFormat(type_insens_node, index)); in ReorderTypeInsensitiveCastDown()
239 cast_io_info.outputs_format = cast_io_info.inputs_format; in ReorderTypeInsensitiveCastDown()
313 cast_io_info.inputs_format.push_back(pattern_output_format); in ReorderCastUpTypeInsensitive()
314 cast_io_info.outputs_format = cast_io_info.inputs_format; in ReorderCastUpTypeInsensitive()
Dgraph_kernel_helper.h66 kernel::KernelBuildInfoPtr BuildSelectKernelBuildInfo(const std::vector<std::string> &inputs_format,
70 kernel::KernelBuildInfoPtr BuildSelectKernelBuildInfo(const std::vector<std::string> &inputs_format,
Dreorder_ops.h28 std::vector<std::string> inputs_format; member
Dgraph_kernel_helper.cc287 kernel::KernelBuildInfoPtr BuildSelectKernelBuildInfo(const std::vector<std::string> &inputs_format, in BuildSelectKernelBuildInfo() argument
292 graph_info_builder.SetInputsFormat(inputs_format); in BuildSelectKernelBuildInfo()
303 kernel::KernelBuildInfoPtr BuildSelectKernelBuildInfo(const std::vector<std::string> &inputs_format, in BuildSelectKernelBuildInfo() argument
308 graph_info_builder.SetInputsFormat(inputs_format); in BuildSelectKernelBuildInfo()
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/host/
Dhost_kernel_metadata.cc41 std::vector<std::string> inputs_format{}; in HostMetadataInfo() local
45 inputs_format.emplace_back(kOpFormat_DEFAULT); in HostMetadataInfo()
56 builder.SetInputsFormat(inputs_format); in HostMetadataInfo()
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/aicpu/
Daicpu_kernel_metadata.cc54 std::vector<std::string> inputs_format{}; in AicpuMetadataInfoForSpecialNodes() local
60 inputs_format.emplace_back(kOpFormat_DEFAULT); in AicpuMetadataInfoForSpecialNodes()
72 builder.SetInputsFormat(inputs_format); in AicpuMetadataInfoForSpecialNodes()
/third_party/mindspore/mindspore/ccsrc/runtime/device/gpu/
Dkernel_info_setter.cc248 … std::vector<std::string> *inputs_format, std::vector<std::string> *outputs_format, in UpdateKernelFormatInfo() argument
251 MS_EXCEPTION_IF_NULL(inputs_format); in UpdateKernelFormatInfo()
264 if (input_format_position >= inputs_format->size()) { in UpdateKernelFormatInfo()
266 … << inputs_format->size() << "] #kernel_node [" << kernel_node->fullname_with_scope() << "]"; in UpdateKernelFormatInfo()
268 (*inputs_format)[input_format_position] = cal_format; in UpdateKernelFormatInfo()
406 std::vector<std::string> inputs_format; in SetKernelInfo() local
410 inputs_format.emplace_back(kOpFormat_DEFAULT); in SetKernelInfo()
422 …UpdateKernelFormatInfo(kernel_node, inputs_type, &inputs_format, &outputs_format, &origin_data_for… in SetKernelInfo()
426 builder->SetInputsFormat(inputs_format); in SetKernelInfo()
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/hccl/
Dhccl_kernel_metadata.cc87 std::vector<std::string> inputs_format{}; in HcclMetadataInfo() local
91 (void)inputs_format.emplace_back(GetKernelFormat(kernel_node, input_index)); in HcclMetadataInfo()
106 builder.SetInputsFormat(inputs_format); in HcclMetadataInfo()
/third_party/mindspore/mindspore/ccsrc/runtime/device/ascend/
Dascend_launch_transdata.cc108 std::vector<std::string> inputs_format = {src_format_}; in ConstructKernelGraphAndSetAttr() local
110 builder->SetInputsFormat(inputs_format); in ConstructKernelGraphAndSetAttr()
/third_party/mindspore/mindspore/ccsrc/runtime/hardware/cpu/
Dcpu_device_context.cc147 std::vector<std::string> inputs_format; in SetControlOpInfo() local
151 (void)inputs_format.emplace_back(kOpFormat_DEFAULT); in SetControlOpInfo()
163 builder->SetInputsFormat(inputs_format); in SetControlOpInfo()
/third_party/mindspore/tests/ut/cpp/pre_activate/pass/
Dcommon_subexpression_elimination_test.cc42 kernel::KernelBuildInfoPtr CreateKernelBuildInfo(const std::vector<std::string> &inputs_format, in CreateKernelBuildInfo() argument
48 builder1.SetInputsFormat(inputs_format); in CreateKernelBuildInfo()
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/
Dkernel_build_info.cc156 …BuildInfo::KernelBuildInfoBuilder::SetInputsFormat(const std::vector<std::string> &inputs_format) { in SetInputsFormat() argument
158 kernel_build_info_->inputs_format_ = inputs_format; in SetInputsFormat()
Dcommon_utils.cc306 std::vector<std::string> inputs_format; in SetInputKernelBuilderInfo() local
333 inputs_format.push_back(formats[builder_idex]); in SetInputKernelBuilderInfo()
340 inputs_format.push_back(formats[builder_idex]); in SetInputKernelBuilderInfo()
347 inputs_format.push_back(formats[builder_idex]); in SetInputKernelBuilderInfo()
353 builder->SetInputsFormat(inputs_format); in SetInputKernelBuilderInfo()
Dkernel_build_info.h153 void SetInputsFormat(const std::vector<std::string> &inputs_format);
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/tbe/tbe_kernel_select/
Dtbe_kernel_select.cc108 std::vector<std::string> inputs_format; in GetCommonPatternKernelInfo() local
114 … &inputs_format, &inputs_device_type, &inputs_reshape_type, &inputs_value_depend)) { in GetCommonPatternKernelInfo()
118 builder.SetInputsFormat(inputs_format); in GetCommonPatternKernelInfo()
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/ascend/buffer_fusion/
Dub_pattern_fusion.cc113 std::vector<std::string> inputs_format; in CreateFusionOpKernelInfo() local
117 (void)inputs_format.emplace_back(AnfAlgo::GetOutputFormat(real_input.first, real_input.second)); in CreateFusionOpKernelInfo()
136 builder.SetInputsFormat(inputs_format); in CreateFusionOpKernelInfo()