/third_party/mindspore/mindspore/ccsrc/backend/optimizer/ascend/ir_fusion/ |
D | input_to_output_registry.cc | 25 return !(AnfAlgo::GetPrevNodeOutputInferDataType(node, 0) != kNumberTypeFloat32); in ApplyRMSPropPreCheck() 29 TypeId data_type = AnfAlgo::GetPrevNodeOutputInferDataType(node, 0); in FusedMulApplyMomentumPreCheck() 34 return !(AnfAlgo::GetPrevNodeOutputInferDataType(node, 0) != kNumberTypeFloat32); in SparseApplyRMSPropPreCheck() 38 TypeId data_type = AnfAlgo::GetPrevNodeOutputInferDataType(node, 0); in ApplyAdagradV2PreCheck() 43 TypeId data_type = AnfAlgo::GetPrevNodeOutputInferDataType(node, 0); in ApplyKerasMomentumPreCheck() 48 return !(AnfAlgo::GetPrevNodeOutputInferDataType(node, 0) != kNumberTypeFloat32); in SparseApplyFtrlPreCheck() 52 return !(AnfAlgo::GetPrevNodeOutputInferDataType(node, 0) != kNumberTypeFloat32); in SparseApplyFtrlV2PreCheck() 56 return !(AnfAlgo::GetPrevNodeOutputInferDataType(node, 0) != kNumberTypeFloat32); in SparseApplyAdagradV2PreCheck() 60 return !(AnfAlgo::GetPrevNodeOutputInferDataType(node, 0) != kNumberTypeFloat32); in SparseApplyAdadeltaPreCheck()
|
D | derelu_fusion.cc | 61 auto input_dtype = AnfAlgo::GetPrevNodeOutputInferDataType(relu, 0); in CreateReluV2()
|
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/gpu/ |
D | replace_momentum_cast_fusion.cc | 37 auto src = AnfAlgo::GetPrevNodeOutputInferDataType(grad_cast, 0); in Process() 54 outputs_type[kGradIndex] = AnfAlgo::GetPrevNodeOutputInferDataType(grad_cast, 0); in Process()
|
D | insert_format_transform_op.cc | 65 auto input_type = AnfAlgo::GetPrevNodeOutputInferDataType(node, 0); in SetTransposeOpBuildInfo() 102 auto transpose_type = {AnfAlgo::GetPrevNodeOutputInferDataType(used_node, used_node_index)}; in InsertTransposeOp()
|
D | add_relu_v2_fusion.cc | 39 inputs_type.push_back(AnfAlgo::GetPrevNodeOutputInferDataType(node, input_index)); in GenerateKernelBuildInfo()
|
D | matmul_biasadd_fusion.cc | 39 inputs_type.push_back(AnfAlgo::GetPrevNodeOutputInferDataType(node, input_index)); in GenerateKernelBuildInfo()
|
D | add_relu_grad_v2_fusion.cc | 39 inputs_type.push_back(AnfAlgo::GetPrevNodeOutputInferDataType(node, input_index)); in GenerateKernelBuildInfo()
|
D | insert_cast_gpu.cc | 81 auto inferType = AnfAlgo::GetPrevNodeOutputInferDataType(node, i); in Run()
|
D | reduce_precision_fusion.cc | 79 auto inferType = AnfAlgo::GetPrevNodeOutputInferDataType(node, i); in Run()
|
D | combine_cast_fusion.cc | 43 auto src = AnfAlgo::GetPrevNodeOutputInferDataType(cast_node, 0); in GetDealList()
|
D | relu_v2_pass.cc | 52 inputs_type.push_back(AnfAlgo::GetPrevNodeOutputInferDataType(node, input_index)); in GenerateKernelBuildInfo()
|
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/ascend/mindir/ |
D | bn_grad_unify_mindir.cc | 49 AnfAlgo::GetPrevNodeOutputInferDataType(bn_grad_node, 3), in CreateNewBatchNormGrad() 50 AnfAlgo::GetPrevNodeOutputInferDataType(bn_grad_node, 4)}; in CreateNewBatchNormGrad()
|
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/ascend/ir_fission/ |
D | unsorted_segment_sum_fission.cc | 36 …AnfAlgo::SetOutputInferTypeAndShape({AnfAlgo::GetPrevNodeOutputInferDataType(origin_node, 0)}, {sh… in CreatePadding() 116 auto input_dtype = AnfAlgo::GetPrevNodeOutputInferDataType(origin_node, 0); in Process()
|
D | gather_v2_ds_fission.cc | 55 auto type_id = AnfAlgo::GetPrevNodeOutputInferDataType(origin_node, 0); in CreatePad() 166 auto input_dtype = AnfAlgo::GetPrevNodeOutputInferDataType(origin_node, 0); in Process()
|
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/cpu/ |
D | insert_format_transform_op.cc | 65 auto transpose_type = {AnfAlgo::GetPrevNodeOutputInferDataType(used_node, used_node_index)}; in InsertTransposeOp() 79 auto input_type = AnfAlgo::GetPrevNodeOutputInferDataType(node, 0); in SetTransposeOpBuildInfo()
|
/third_party/mindspore/mindspore/ccsrc/fl/server/kernel/ |
D | optimizer_kernel_factory.cc | 42 TypeId kernel_node_input_type = AnfAlgo::GetPrevNodeOutputInferDataType(kernel_node, input_idx); in Matched()
|
D | aggregation_kernel_factory.cc | 43 TypeId kernel_node_input_type = AnfAlgo::GetPrevNodeOutputInferDataType(kernel_node, input_idx); in Matched()
|
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/host/ |
D | host_kernel_metadata.cc | 46 inputs_type.push_back(AnfAlgo::GetPrevNodeOutputInferDataType(kernel_node, input_index)); in HostMetadataInfo()
|
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/aicpu/ |
D | aicpu_kernel_metadata.cc | 61 … (void)inputs_type.emplace_back(AnfAlgo::GetPrevNodeOutputInferDataType(kernel_node, input_index)); in AicpuMetadataInfoForSpecialNodes()
|
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/rts/ |
D | rt_kernel_info.cc | 75 input_types.push_back(AnfAlgo::GetPrevNodeOutputInferDataType(kernel_node, i)); in GetRtKelInfo()
|
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/ascend/enhancer/ |
D | insert_pad_for_nms_with_mask.cc | 67 auto origin_type = AnfAlgo::GetPrevNodeOutputInferDataType(cnode, input_idx); in Process()
|
D | split_inputs_for_reduce_scatter.cc | 34 std::vector<TypeId> dtypes(rank_size, AnfAlgo::GetPrevNodeOutputInferDataType(node, i)); in InsertSplitForInput()
|
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/ascend/format_type/ |
D | insert_transpose_for_basiclstm_op.cc | 46 auto origin_type = AnfAlgo::GetPrevNodeOutputInferDataType(cnode, 1); in Insert()
|
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/ |
D | resize_nearest_neighbor_grad_cpu_kernel.cc | 36 dtype_ = AnfAlgo::GetPrevNodeOutputInferDataType(kernel_node, 0); in InitKernel()
|
/third_party/mindspore/tests/ut/cpp/session/ |
D | anf_runtime_algorithm_test.cc | 432 TEST_F(AnfRuntimeAlgorithmTest, GetPrevNodeOutputInferDataType) { in TEST_F() argument 443 EXPECT_EQ(AnfAlgo::GetPrevNodeOutputInferDataType(add, 0), kFloat32->type_id()); in TEST_F() 444 EXPECT_THROW(AnfAlgo::GetPrevNodeOutputInferDataType(add, 1), std::runtime_error); in TEST_F() 445 EXPECT_THROW(AnfAlgo::GetPrevNodeOutputInferDataType(nullptr, 0), std::runtime_error); in TEST_F() 448 EXPECT_THROW(AnfAlgo::GetPrevNodeOutputInferDataType(parameter_node, 0), std::runtime_error); in TEST_F()
|