!20698 [MS][LITE]fix bug of converter tiny yolov3

Merge pull request !20698 from mengyuanli/bugfix2
This commit is contained in:
i-robot 2021-07-22 10:51:37 +00:00 committed by Gitee
commit d685a4b876
1 changed files with 0 additions and 3 deletions

View File

@ -577,9 +577,6 @@ void InferShapePass::ResetIncorrectTensorShape(MetaGraphT *graph) {
auto shape = tensor->dims;
if (shape == std::vector{-1}) {
tensor->dims = {};
if (tensor->dataType == kObjectTypeTensorType) {
reinterpret_cast<TensorList *>(tensor.get())->set_tensors({});
}
}
}
}