Skip to content

Commit

Permalink
No description
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 481235204
  • Loading branch information
derekmauro authored and copybara-github committed Oct 14, 2022
1 parent 6642018 commit d7a4680
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#include "lib/model_builder.h"

#include <memory>

#include "absl/status/status.h"
#include "absl/strings/str_format.h"
#include "absl/strings/str_join.h"
Expand Down Expand Up @@ -61,8 +63,8 @@ ModelBuilder::CreateFromImageEmbedderOptions(
return absl::InvalidArgumentError("Failed to build model from file: " +
model_file);
}
return absl::make_unique<ModelBuilder>(std::move(image_embedder),
std::move(model));
return std::make_unique<ModelBuilder>(std::move(image_embedder),
std::move(model));
}

void ModelBuilder::SetMetadata(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class ModelBuilder {
std::unique_ptr<::tflite::task::vision::ImageEmbedder> image_embedder,
std::unique_ptr<::tflite::FlatBufferModel> model,
std::unique_ptr<TfLiteCbRBuilder> tflite_cbr_builder =
absl::make_unique<TfLiteCbRBuilder>());
std::make_unique<TfLiteCbRBuilder>());

// Initializes the ModelBuilder from the provided ImageEmbedderOptions.
static tflite::support::StatusOr<std::unique_ptr<ModelBuilder>>
Expand Down

0 comments on commit d7a4680

Please sign in to comment.