forked from mindspore-Ecosystem/mindspore
!6120 Fix c api of ImageFolderDataset probably fails in unit testing
Merge pull request !6120 from jiangzhiwen/fix/prob_nullptr
This commit is contained in:
commit
1a5d4b8ed1
|
@ -123,9 +123,9 @@ Status Iterator::BuildAndLaunchTree(std::shared_ptr<Dataset> ds) {
|
||||||
|
|
||||||
// Launch the execution tree.
|
// Launch the execution tree.
|
||||||
RETURN_IF_NOT_OK(tree_->Prepare());
|
RETURN_IF_NOT_OK(tree_->Prepare());
|
||||||
|
tree_->Launch();
|
||||||
iterator_ = std::make_unique<DatasetIterator>(tree_);
|
iterator_ = std::make_unique<DatasetIterator>(tree_);
|
||||||
RETURN_UNEXPECTED_IF_NULL(iterator_);
|
RETURN_UNEXPECTED_IF_NULL(iterator_);
|
||||||
RETURN_IF_NOT_OK(tree_->Launch());
|
|
||||||
|
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue