Skip to content

Commit

Permalink
Replace tensorflow::StatusOr::ConsumeValueOrDie with StatusOr::ValueO…
Browse files Browse the repository at this point in the history
…rDie(). (iree-org#9770)

This is to align tensorflow::StatusOr with absl::StatusOr in preparation
for upstream changes.
  • Loading branch information
jpienaar authored Jul 12, 2022
1 parent 9f5389a commit 45768ca
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ static OwningOpRef<mlir::ModuleOp> importSavedModelV2(
return nullptr;
}

return loadedModule.ConsumeValueOrDie();
return std::move(loadedModule).ValueOrDie();
}

static OwningOpRef<mlir::ModuleOp> importSavedModelV1(
Expand Down Expand Up @@ -117,7 +117,7 @@ static OwningOpRef<mlir::ModuleOp> importSavedModelV1(
return nullptr;
}

return loadedModule.ConsumeValueOrDie();
return std::move(loadedModule).ValueOrDie();
}

int main(int argc, char **argv) {
Expand Down

0 comments on commit 45768ca

Please sign in to comment.