Home
last modified time | relevance | path

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

12

/third_party/mindspore/mindspore/ccsrc/backend/optimizer/gpu/
Dreplace_momentum_cast_fusion.cc47 std::vector<TypeId> outputs_type; in Process() local
51 outputs_type.push_back(AnfAlgo::GetOutputInferDataType(node, i)); in Process()
54 outputs_type[kGradIndex] = AnfAlgo::GetPrevNodeOutputInferDataType(grad_cast, 0); in Process()
56 AnfAlgo::SetOutputInferTypeAndShape(outputs_type, outputs_shape, node.get()); in Process()
Dreplace_addn_fusion.cc43 std::vector<TypeId> outputs_type; in Process() local
45 outputs_type.push_back(AnfAlgo::GetOutputInferDataType(A, 0)); in Process()
47 AnfAlgo::SetOutputInferTypeAndShape(outputs_type, outputs_shape, add_new.get()); in Process()
Dadd_relu_v2_fusion.cc34 std::vector<TypeId> outputs_type; in GenerateKernelBuildInfo() local
44 outputs_type.push_back(AnfAlgo::GetOutputInferDataType(node, output_index)); in GenerateKernelBuildInfo()
49 builder.SetOutputsDeviceType(outputs_type); in GenerateKernelBuildInfo()
Dmatmul_biasadd_fusion.cc34 std::vector<TypeId> outputs_type; in GenerateKernelBuildInfo() local
44 outputs_type.push_back(AnfAlgo::GetOutputInferDataType(node, output_index)); in GenerateKernelBuildInfo()
49 builder.SetOutputsDeviceType(outputs_type); in GenerateKernelBuildInfo()
Dadd_relu_grad_v2_fusion.cc34 std::vector<TypeId> outputs_type; in GenerateKernelBuildInfo() local
44 outputs_type.push_back(AnfAlgo::GetOutputInferDataType(node, output_index)); in GenerateKernelBuildInfo()
49 builder.SetOutputsDeviceType(outputs_type); in GenerateKernelBuildInfo()
Dbatch_norm_relu_fusion.cc80 std::vector<TypeId> outputs_type; in Process() local
84 outputs_type.push_back(AnfAlgo::GetOutputInferDataType(batch_norm, i)); in Process()
87 …AnfAlgo::SetOutputInferTypeAndShape(outputs_type, outputs_shape, fused_batch_norm_with_relu.get()); in Process()
Dbatch_norm_add_relu_fusion.cc85 std::vector<TypeId> outputs_type; in Process() local
89 outputs_type.push_back(AnfAlgo::GetOutputInferDataType(batch_norm, i)); in Process()
92 …AnfAlgo::SetOutputInferTypeAndShape(outputs_type, outputs_shape, fused_batch_norm_with_add_relu.ge… in Process()
Dpost_batch_norm_add_relu_fusion.cc85 std::vector<TypeId> outputs_type; in Process() local
89 outputs_type.push_back(AnfAlgo::GetOutputInferDataType(batch_norm, i)); in Process()
92 …AnfAlgo::SetOutputInferTypeAndShape(outputs_type, outputs_shape, fused_batch_norm_with_add_relu.ge… in Process()
Dbatch_norm_relu_grad_fusion.cc97 std::vector<TypeId> outputs_type; in Process() local
101 outputs_type.push_back(AnfAlgo::GetOutputInferDataType(node, i)); in Process()
104 …AnfAlgo::SetOutputInferTypeAndShape(outputs_type, outputs_shape, fused_batch_norm_grad_with_relu.g… in Process()
Dbatch_norm_add_relu_grad_fusion.cc70 std::vector<TypeId> outputs_type; in SetShapeAndType() local
74 outputs_type.push_back(AnfAlgo::GetOutputInferDataType(bn_grad, i)); in SetShapeAndType()
78 outputs_type.push_back(AnfAlgo::GetOutputInferDataType(relu_grad, 0)); in SetShapeAndType()
80 AnfAlgo::SetOutputInferTypeAndShape(outputs_type, outputs_shape, bn_add_relu_grad.get()); in SetShapeAndType()
Drelu_v2_pass.cc47 std::vector<TypeId> outputs_type; in GenerateKernelBuildInfo() local
57 outputs_type.push_back(AnfAlgo::GetOutputInferDataType(node, output_index)); in GenerateKernelBuildInfo()
62 builder.SetOutputsDeviceType(outputs_type); in GenerateKernelBuildInfo()
Dadam_fusion.cc34 std::vector<TypeId> outputs_type; in GenerateKernelBuildInfo() local
45 outputs_type.push_back(AnfAlgo::GetOutputInferDataType(node, output_index)); in GenerateKernelBuildInfo()
50 builder.SetOutputsDeviceType(outputs_type); in GenerateKernelBuildInfo()
Dadam_weight_decay_fusion.cc34 std::vector<TypeId> outputs_type; in GenerateKernelBuildInfo() local
45 outputs_type.push_back(AnfAlgo::GetOutputInferDataType(node, output_index)); in GenerateKernelBuildInfo()
50 builder.SetOutputsDeviceType(outputs_type); in GenerateKernelBuildInfo()
Dprint_reduce_fusion.cc33 std::vector<TypeId> outputs_type; in GenerateKernelBuildInfo() local
44 outputs_type.push_back(AnfAlgo::GetOutputInferDataType(node, output_index)); in GenerateKernelBuildInfo()
50 builder.SetOutputsDeviceType(outputs_type); in GenerateKernelBuildInfo()
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/hccl/
Dhccl_kernel_metadata.cc95 std::vector<TypeId> outputs_type; in HcclMetadataInfo() local
100 outputs_type.push_back(recv_type); in HcclMetadataInfo()
102 outputs_type.push_back(type); in HcclMetadataInfo()
109 builder.SetOutputsDeviceType(outputs_type); in HcclMetadataInfo()
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/host/
Dhost_kernel_metadata.cc49 std::vector<TypeId> outputs_type; in HostMetadataInfo() local
53 outputs_type.push_back(AnfAlgo::GetOutputInferDataType(kernel_node, output_index)); in HostMetadataInfo()
59 builder.SetOutputsDeviceType(outputs_type); in HostMetadataInfo()
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/graph_kernel/
Dreorder_ops.cc100 if (node_io_info.outputs_type.empty()) { in SetNodeInfo()
107 …w_abstract = std::make_shared<abstract::AbstractTensor>(TypeIdToType(node_io_info.outputs_type[0]), in SetNodeInfo()
111 …w_abstract = std::make_shared<abstract::AbstractTensor>(TypeIdToType(node_io_info.outputs_type[0]), in SetNodeInfo()
125 info_builder.SetOutputsDeviceType(node_io_info.outputs_type); in SetNodeInfo()
241 cast_io_info.outputs_type.push_back(small_type); in ReorderTypeInsensitiveCastDown()
250 type_insens_io_info.outputs_type.push_back(small_type); in ReorderTypeInsensitiveCastDown()
307 type_insens_io_info.outputs_type.push_back(small_type); in ReorderCastUpTypeInsensitive()
316 cast_io_info.outputs_type.push_back(large_type); in ReorderCastUpTypeInsensitive()
Dreorder_ops.h31 std::vector<TypeId> outputs_type; member
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/aicpu/
Daicpu_kernel_metadata.cc65 std::vector<TypeId> outputs_type; in AicpuMetadataInfoForSpecialNodes() local
69 (void)outputs_type.emplace_back(AnfAlgo::GetOutputInferDataType(kernel_node, output_index)); in AicpuMetadataInfoForSpecialNodes()
75 builder.SetOutputsDeviceType(outputs_type); in AicpuMetadataInfoForSpecialNodes()
/third_party/mindspore/mindspore/ccsrc/runtime/device/gpu/
Dkernel_info_setter.cc345 const std::vector<TypeId> &outputs_type) { in PrintUnsupportedTypeException() argument
351 std::for_each(std::begin(outputs_type), std::end(outputs_type), in PrintUnsupportedTypeException()
414 std::vector<TypeId> outputs_type; in SetKernelInfo() local
418 outputs_type.push_back(AnfAlgo::GetOutputInferDataType(kernel_node, output_index)); in SetKernelInfo()
429 builder->SetOutputsDeviceType(outputs_type); in SetKernelInfo()
445 PrintUnsupportedTypeException(kernel_node, inputs_type, outputs_type); in SetKernelInfo()
/third_party/mindspore/mindspore/ccsrc/frontend/parallel/graph_util/
Dnode_info.cc201 std::vector<TypePtr> outputs_type; in ExtractOutputTypeByNode() local
212 outputs_type.push_back(ele_element_type); in ExtractOutputTypeByNode()
221 outputs_type.push_back(element_type); in ExtractOutputTypeByNode()
226 return outputs_type; in ExtractOutputTypeByNode()
/third_party/mindspore/mindspore/ccsrc/runtime/hardware/cpu/
Dcpu_device_context.cc155 std::vector<TypeId> outputs_type; in SetControlOpInfo() local
159 outputs_type.push_back(AnfAlgo::GetOutputInferDataType(kernel_node, output_index)); in SetControlOpInfo()
166 builder->SetOutputsDeviceType(outputs_type); in SetControlOpInfo()
/third_party/mindspore/mindspore/ccsrc/frontend/parallel/
Dstep_auto_parallel.cc311 auto outputs_type = ExtractOutputTypeByNode(cnode); in CreateTheOperatorInfo() local
313 outputs_type_length.reserve(outputs_type.size()); in CreateTheOperatorInfo()
314 std::transform(outputs_type.begin(), outputs_type.end(), std::back_inserter(outputs_type_length), in CreateTheOperatorInfo()
320 if (operator_info->set_outputs_type(outputs_type) != SUCCESS) { in CreateTheOperatorInfo()
/third_party/mindspore/mindspore/ccsrc/frontend/parallel/ops_info/
Doperator_info.h82 Status set_outputs_type(const std::vector<TypePtr> &outputs_type);
83 const std::vector<TypePtr> &outputs_type() const { return outputs_type_; } in outputs_type() function
Doperator_info.cc1683 Status OperatorInfo::set_outputs_type(const std::vector<TypePtr> &outputs_type) { in set_outputs_type() argument
1684 if (outputs_type.size() != outputs_shape_.size()) { in set_outputs_type()
1685 MS_LOG(ERROR) << "Outputs type: " << outputs_type.size() in set_outputs_type()
1689 outputs_type_ = outputs_type; in set_outputs_type()

12