pull/1115/head
wangcong 5 years ago
parent 2f591cab79
commit c0772522d2

@ -725,7 +725,7 @@ std::string TbeKernelBuild::GetRealOpType(const std::string &origin_type) {
static std::map<std::string, std::string> buffer_fussion_op_map = {{"DepthwiseConv2dNative", "DepthwiseConv2D"}, static std::map<std::string, std::string> buffer_fussion_op_map = {{"DepthwiseConv2dNative", "DepthwiseConv2D"},
{"TensorAdd", "Add"}}; {"TensorAdd", "Add"}};
string result = origin_type; string result = origin_type;
std::map<std::string, std::string> iter = buffer_fussion_op_map.find(origin_type); auto iter = buffer_fussion_op_map.find(origin_type);
if (iter != buffer_fussion_op_map.end()) { if (iter != buffer_fussion_op_map.end()) {
result = iter->second; result = iter->second;
} }

Loading…
Cancel
Save