Home
last modified time | relevance | path

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

123

/third_party/mindspore/mindspore/ccsrc/backend/optimizer/ascend/format_type/
Dmerge_cast_to_op.cc41 candidate_kernel_info->GetInputFormat(i) != AnfAlgo::GetInputFormat(node, i)) { in AlternativeKernelInfoForInput()
45 candidate_kernel_info->GetInputFormat(i) != AnfAlgo::GetInputFormat(node, i)) { in AlternativeKernelInfoForInput()
80 if (AnfAlgo::GetInputFormat(node, index) != kernel_info->GetInputFormat(index) || in CheckInputs()
Drectify_do_mask_kernel_info.cc68 auto do_mask_data_format = AnfAlgo::GetInputFormat(do_mask, 0); in RectifyKernelInfo()
112 if (AnfAlgo::GetInputFormat(do_mask, 0) != format) { in RectifyDropOutDoMaskKernelInfo()
133 auto do_mask_input_format = AnfAlgo::GetInputFormat(node, 0); in RectifyKernelInfoInPynativeProcess()
Dchange_axis_of_reduce_kernel.cc73 auto format = AnfAlgo::GetInputFormat(cnode, 0); in ConvertReduceAttrFraczAnd6HD()
109 auto convert_map = kReduceConvertMap.find(AnfAlgo::GetInputFormat(node, 0)); in Process()
Dtrans_op_format_refine.cc36 auto in_format = AnfAlgo::GetInputFormat(node, 0); in Process()
Dinsert_transdata_for_runop.cc40 auto input_format = AnfAlgo::GetInputFormat(cnode, index); in Run()
Dinsert_transpose_for_dynamic_gru_v2.cc53 auto input_format = AnfAlgo::GetInputFormat(transdata_node, 0); in Insert()
Dcheck_consistency.cc35 string selected_input_format = AnfAlgo::GetInputFormat(node, input_index); in CheckFormatForConsistency()
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/graph_kernel/
Dreorder_ops.cc188 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()
209 AnfAlgo::GetInputFormat(node, 0) != AnfAlgo::GetOutputFormat(node, 0)) { in ReorderTypeInsensitiveCastDown()
238 cast_io_info.inputs_format.push_back(AnfAlgo::GetInputFormat(type_insens_node, index)); in ReorderTypeInsensitiveCastDown()
277 AnfAlgo::GetInputFormat(node, 0) == AnfAlgo::GetOutputFormat(node, 0) && in ReorderCastUpTypeInsensitive()
Draise_reduction_precision.cc50 info_builder.SetInputsFormat({AnfAlgo::GetInputFormat(node, 0)}); in CreateReduceSum()
92 …auto cast1 = CreateCast(node->cast<CNodePtr>()->input(1), kFloat32, AnfAlgo::GetInputFormat(node, … in Process()
Dsubstitute_dropout.cc76 …dropout_kernel_info_builder->SetInputsFormat({old_kernel_info->GetInputFormat(0), kOpFormat_DEFAUL… in PreProcess()
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/ascend/ir_fission/
Dtransdata_split.cc46 auto input_format = AnfAlgo::GetInputFormat(node, 0); in IsFormatInvaild()
67 auto input_format = AnfAlgo::GetInputFormat(node, 0); in DoSplit()
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/ascend/
Dascend_helper.cc61 std::string input_format = AnfAlgo::GetInputFormat(trans_node, 0); in SetTransNodeAttr()
126 std::string dest_format = AnfAlgo::GetInputFormat(node, index); in GetTransInputNodePtr()
128 …MS_LOG(DEBUG) << node->DebugString() << "Insert transdata " << AnfAlgo::GetInputFormat(node, index) in GetTransInputNodePtr()
201 …std::string dst_format = is_insert_input ? AnfAlgo::GetInputFormat(node, insert_index) : default_f… in AddTransOpNodeToGraph()
218 …auto padding_shape = trans::PaddingShape(input_node_out_shape, AnfAlgo::GetInputFormat(node, inser… in AddTransOpNodeToGraph()
443 const std::string dev_fmt = AnfAlgo::GetInputFormat(cnode, input_index); in InsertCastForInput()
/third_party/mindspore/mindspore/ccsrc/runtime/device/ascend/
Dkernel_select_ascend.cc153 …if (kernel_build_info.GetInputFormat(input_index) == AnfAlgo::GetPrevNodeOutputFormat(kernel_node,… in UpdateCurMatchCounts()
164 if (kernel_build_info.GetInputFormat(input_index) == pri_match_format) { in UpdateCurMatchCounts()
167 if (kernel_build_info.GetInputFormat(input_index) == kOpFormat_DEFAULT || in UpdateCurMatchCounts()
168 kernel_build_info.GetInputFormat(input_index) == kOpFormat_NCDHW) { in UpdateCurMatchCounts()
444 …if (RefreshCastAndParamWeightFormat(real_input_node, selected_kernel_info->GetInputFormat(input_in… in SetTensorDeviceInfo()
450 auto refresh_format = selected_kernel_info->GetInputFormat(input_index); in SetTensorDeviceInfo()
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/ascend/ir_fusion/
Dlayer_norm_beta_gamma_backprop_fusion.cc60 kernel_info->GetInputFormat(i) != AnfAlgo::GetInputFormat(cnode, i)) { in CheckKernelBuildInfo()
Drefresh_parameter_format.cc34 auto cnode_input_format = AnfAlgo::GetInputFormat(cnode, input_index); in DoRefresh()
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/
Dkernel_build_info.h53 std::string GetInputFormat(size_t input_index) const;
136 kernel_build_info_->inputs_format_.emplace_back(kernel_build_info->GetInputFormat(index)); in KernelBuildInfoBuilder()
Dkernel_build_info.cc22 std::string KernelBuildInfo::GetInputFormat(size_t input_index) const { in GetInputFormat() function in mindspore::kernel::KernelBuildInfo
108 …output_buffer << "<" << ToShortString(GetInputDeviceType(index)) << "x" << GetInputFormat(index) <… in ToString()
/third_party/mindspore/mindspore/lite/micro/example/mnist_stm32f746/mnist_stm32f746/include/api/
Dcontext.h139 inline std::string GetInputFormat() const;
207 std::string Ascend310DeviceInfo::GetInputFormat() const { return CharToString(GetInputFormatChar())… in GetInputFormat() function
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/pass/
Deliminate_redundant_op.cc77 return AnfAlgo::GetInputFormat(node1, 0) == AnfAlgo::GetOutputFormat(node2, 0) && in TransDataOpEliminateCondition()
78 AnfAlgo::GetOutputFormat(node1, 0) == AnfAlgo::GetInputFormat(node2, 0) && in TransDataOpEliminateCondition()
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/cpu/
Dinsert_format_transform_op.cc103 …AnfAlgo::IsRealCNodeKernel(used_node) ? AnfAlgo::GetInputFormat(used_node, used_node_index) : kOpF… in ProcessForTupleItem()
162 …AnfAlgo::IsRealCNodeKernel(used_node) ? AnfAlgo::GetInputFormat(used_node, used_node_index) : kOpF… in InsertTransformOpForOutput()
/third_party/mindspore/include/api/
Dcontext.h319 inline std::string GetInputFormat() const;
415 std::string Ascend310DeviceInfo::GetInputFormat() const { return CharToString(GetInputFormatChar())… in GetInputFormat() function
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/akg/
Dakg_kernel_attrs_process.cc186 auto left_format = AnfAlgo::GetInputFormat(anf_node, 0); in SetAkgAttrsForMatMul()
187 auto right_format = AnfAlgo::GetInputFormat(anf_node, 1); in SetAkgAttrsForMatMul()
Dakg_kernel_json_generator.cc153 std::string AkgKernelJsonGenerator::GetInputFormat(const AnfNodePtr &anf_node, size_t real_index) c… in GetInputFormat() function in mindspore::kernel::AkgKernelJsonGenerator
154 …return dump_option_.is_before_select_kernel ? kOpFormat_DEFAULT : AnfAlgo::GetInputFormat(anf_node… in GetInputFormat()
202 input_desc_json[kJsonKeyFormat] = this->GetInputFormat(anf_node, real_input_index); in CreateInputDescJson()
286 auto input_format = this->GetInputFormat(anf_node, format_i); in GetAttrJson()
721 input_desc_json[kJsonKeyFormat] = this->GetInputFormat(tmp_input.first, tmp_input.second.first); in CreateInputsJson()
/third_party/mindspore/mindspore/ccsrc/runtime/device/gpu/
Dkernel_info_setter.cc49 if (selected_kernel_info->GetInputFormat(i) != alternative_kernel_info->GetInputFormat(i)) { in CheckKernelInfo()
171 std::vector<std::string> output_format = {selected_kernel_info.GetInputFormat(input_index)}; in SetTensorDeviceInfo()
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/gpu/
Dbatch_norm_relu_fusion.cc54 if (AnfAlgo::GetInputFormat(batch_norm, 0) != kOpFormat_NHWC && format != "NHWC") { in Process()

123