From b9d632bbd94e972e2e2037c6c2feadb4251b474f Mon Sep 17 00:00:00 2001 From: lianghao Date: Fri, 22 Jan 2021 20:21:43 +0800 Subject: [PATCH] VerifyConstOp --- ge/graph/preprocess/graph_preprocess.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ge/graph/preprocess/graph_preprocess.cc b/ge/graph/preprocess/graph_preprocess.cc index 19f5ef54..2864b759 100644 --- a/ge/graph/preprocess/graph_preprocess.cc +++ b/ge/graph/preprocess/graph_preprocess.cc @@ -1665,6 +1665,9 @@ Status GraphPrepare::VerifyConstOp(const NodePtr &node) { auto ge_tensor_desc = ge_tensor_ptr->GetTensorDesc(); int64_t shape_size = ge_tensor_desc.GetShape().GetShapeSize(); auto data_type = ge_tensor_desc.GetDataType(); + if (data_type == DT_STRING) { + return SUCCESS; + } uint32_t length = 1; bool type_ret = TypeUtils::GetDataTypeLength(data_type, length); if (!type_ret) {