提交 64780157 编写于 作者: W wangcong

fix compile error

上级 7017ac3f
......@@ -722,8 +722,8 @@ size_t TbeKernelBuild::GetOptionalInput(const mindspore::CNodePtr &cnode, bool i
}
std::string TbeKernelBuild::GetRealOpType(const std::string &origin_type) {
static std::map<std::string, std::string> TbeKernelBuild::buffer_fussion_op_map = {
{"DepthwiseConv2dNative", "DepthwiseConv2D"}, {"TensorAdd", "Add"}};
static std::map<std::string, std::string> buffer_fussion_op_map = {{"DepthwiseConv2dNative", "DepthwiseConv2D"},
{"TensorAdd", "Add"}};
string result = origin_type;
if (buffer_fussion_op_map.find(origin_type) != buffer_fussion_op_map.end()) {
result = buffer_fussion_op_map[origin_type];
......
......@@ -204,6 +204,7 @@ extern const PrimitivePtr kPrimOneHot;
extern const PrimitivePtr kPrimGelu;
extern const PrimitivePtr kPrimGeluGrad;
extern const PrimitivePtr kPrimRelu;
extern const PrimitivePtr kPrimReluV2;
extern const PrimitivePtr kPrimActivation;
extern const PrimitivePtr kPrimZerosLikeTensor;
extern const PrimitivePtr kPrimFakeBprop;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册