提交 e477e761 编写于 作者: W wangcong

update getrealop name

上级 64780157
......@@ -721,7 +721,7 @@ size_t TbeKernelBuild::GetOptionalInput(const mindspore::CNodePtr &cnode, bool i
return (op_info->inputs_ptr().size() + 1 - cnode->inputs().size());
}
std::string TbeKernelBuild::GetRealOpType(const std::string &origin_type) {
std::string TbeKernelBuild::GetRealOpType(std::string &origin_type) {
static std::map<std::string, std::string> buffer_fussion_op_map = {{"DepthwiseConv2dNative", "DepthwiseConv2D"},
{"TensorAdd", "Add"}};
string result = origin_type;
......
......@@ -76,7 +76,7 @@ class TbeKernelBuild {
std::map<const AnfNodePtr, FusionDataType> *spec_data_input);
static bool IsDynamicInput(const CNodePtr &cnode);
static size_t GetOptionalInput(const CNodePtr &cnode, bool is_dynamic_input);
std::string GetRealOpType(const std::string &origin_type);
std::string GetRealOpType(std::string &origin_type);
};
class TbeKernelJsonCreator {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册