!20698 [MS][LITE]fix bug of converter tiny yolov3
Merge pull request !20698 from mengyuanli/bugfix2
This commit is contained in:
commit
d685a4b876
|
@ -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({});
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue