From 6efe043b76f129761f59d7db7d17585f5002fec9 Mon Sep 17 00:00:00 2001 From: wangzhe Date: Thu, 6 Aug 2020 11:09:56 +0800 Subject: [PATCH] fix tflite transpose parser bug --- .../converter/parser/tflite/tflite_transpose_parser.cc | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/mindspore/lite/tools/converter/parser/tflite/tflite_transpose_parser.cc b/mindspore/lite/tools/converter/parser/tflite/tflite_transpose_parser.cc index 1aa59ac73..829a81370 100644 --- a/mindspore/lite/tools/converter/parser/tflite/tflite_transpose_parser.cc +++ b/mindspore/lite/tools/converter/parser/tflite/tflite_transpose_parser.cc @@ -27,13 +27,9 @@ STATUS TfliteTransposeParser::Parse(const std::unique_ptr &tf schema::CNodeT *op, TensorCache *tensor_cache, bool quantizedModel) { MS_LOG(DEBUG) << "parse TfliteTransposeParser"; std::unique_ptr attr(new schema::TransposeT()); - const auto &tfliteAttr = tfliteOp->builtin_options.AsTransposeOptions(); - if (tfliteAttr == nullptr) { - MS_LOG(ERROR) << "get op: " << op->name.c_str() << " attr failed"; - return RET_NULL_PTR; - } if (GetTfliteData(tfliteOp->inputs[1], tfliteTensors, tfliteModelBuffer, attr->perm)) { + MS_LOG(ERROR) << "parse Transpose attr perm failed"; return RET_ERROR; } -- GitLab