forked from mindspore-Ecosystem/mindspore
fix ImageFolderDataset probability failure
This commit is contained in:
parent
02c6852699
commit
2a59596fe6
|
@ -123,9 +123,9 @@ Status Iterator::BuildAndLaunchTree(std::shared_ptr<Dataset> ds) {
|
|||
|
||||
// Launch the execution tree.
|
||||
RETURN_IF_NOT_OK(tree_->Prepare());
|
||||
tree_->Launch();
|
||||
iterator_ = std::make_unique<DatasetIterator>(tree_);
|
||||
RETURN_UNEXPECTED_IF_NULL(iterator_);
|
||||
RETURN_IF_NOT_OK(tree_->Launch());
|
||||
|
||||
return rc;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue