mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-30 20:18:08 +00:00
Check return value form CreateFeedsFetchesManager. (#1653)
Also cleanup a couple of unused variables.
This commit is contained in:
parent
7be5695fad
commit
5311c1b2b5
3 changed files with 2 additions and 3 deletions
|
|
@ -257,7 +257,6 @@ Status LoopImpl::CreateFeedsFetchesManager(std::unique_ptr<FeedsFetchesManager>&
|
|||
feed_names.push_back(entry.first);
|
||||
}
|
||||
|
||||
FeedsFetchesInfo ffi(feed_names, subgraph_output_names_);
|
||||
auto status =
|
||||
FeedsFetchesManager::Create(feed_names, subgraph_output_names_, session_state_.GetOrtValueNameIdxMap(), ffm);
|
||||
|
||||
|
|
|
|||
|
|
@ -125,7 +125,6 @@ Status CreateFeedsFetchesManager(const GraphViewer& subgraph, int num_variadic_i
|
|||
feed_names.push_back(entry.first);
|
||||
}
|
||||
|
||||
FeedsFetchesInfo ffi(feed_names, subgraph_output_names);
|
||||
auto status = FeedsFetchesManager::Create(feed_names, subgraph_output_names, ort_value_name_idx_map, ffm);
|
||||
|
||||
return status;
|
||||
|
|
|
|||
|
|
@ -26,7 +26,8 @@ common::Status SubgraphExecuteHelper(std::unique_ptr<FeedsFetchesManager>& cache
|
|||
} else {
|
||||
// use a local instance until we know we're successful, and cache if it is
|
||||
std::unique_ptr<FeedsFetchesManager> new_ffm;
|
||||
impl.CreateFeedsFetchesManager(new_ffm);
|
||||
ORT_RETURN_IF_ERROR(impl.CreateFeedsFetchesManager(new_ffm));
|
||||
|
||||
status = impl.Execute(&*new_ffm, nullptr);
|
||||
if (status.IsOK()) {
|
||||
cached_feeds_fetches_manager = std::move(new_ffm);
|
||||
|
|
|
|||
Loading…
Reference in a new issue