Skip to content

Commit

Permalink
Exported FindMetaGraphDef function.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 609799877
  • Loading branch information
tensorflower-gardener authored and tensorflow-copybara committed Feb 23, 2024
1 parent 5d803d4 commit 0df0975
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,8 @@ absl::Status TfrtSavedModelFactory::CreateTfrtSavedModelWithMetadata(

TF_RETURN_IF_ERROR(RegisterCustomBackend(options.graph_execution_options));

// TODO(b/326069213): Consider using arena allocation when loading a
// MetaGraphDef.
tensorflow::MetaGraphDef meta_graph_def;
TF_RETURN_IF_ERROR(tensorflow::ReadMetaGraphDefFromSavedModel(
std::string(path), saved_model_tags, &meta_graph_def));
Expand Down

0 comments on commit 0df0975

Please sign in to comment.