clean cpp check in predict module

This commit is contained in:
yangruoqi713 2020-05-08 10:16:44 +08:00
parent 76a2f7c69d
commit 8ab5c19241
1 changed files with 1 additions and 1 deletions

View File

@ -797,7 +797,7 @@ void update_shape_flatten(const std::vector<DLTensor *> &tensors, int64_t *shape
}
std::string GetEltwiseMode(const OpCommonAttr &opAttr, const mindspore::predict::OpDef &opdef) {
auto &optype = opAttr.optype;
const auto optype = opAttr.optype;
std::string mode = "add";
if (optype == "Eltwise") {
auto op_mode = opdef.attr_as_Eltwise()->mode();