From 66532824ed5610f45b3942a31d6ca9b4729bd1ec Mon Sep 17 00:00:00 2001 From: lianghao Date: Sat, 23 Jan 2021 15:24:29 +0800 Subject: [PATCH] empty --- ge/graph/preprocess/graph_preprocess.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ge/graph/preprocess/graph_preprocess.cc b/ge/graph/preprocess/graph_preprocess.cc index c6179095..875a178d 100644 --- a/ge/graph/preprocess/graph_preprocess.cc +++ b/ge/graph/preprocess/graph_preprocess.cc @@ -135,7 +135,8 @@ OpDescPtr CreateTensorShape(const GeTensorDesc &data_tensor) { void AddTransNodeAttr(const std::string &node_type, const GeTensorDesc &input, const GeTensorDesc &output, OpDescPtr &op_desc) { // For format transfer node, the IR definition has src/dst format attrs - if (node_type == TRANSDATA) { + +if (node_type == TRANSDATA) { GE_IF_BOOL_EXEC( !AttrUtils::SetStr(op_desc, FORMAT_TRANSFER_SRC_FORMAT, TypeUtils::FormatToSerialString(input.GetFormat())), GELOGW("SetStr FORMAT_TRANSFER_SRC_FORMAT failed");)