#include "services/passage_embeddings/passage_embedder_execution_task.h"
#include "base/check_op.h"
#include "third_party/tflite_support/src/tensorflow_lite_support/cc/task/core/task_utils.h"
namespace passage_embeddings {
PassageEmbedderExecutionTask::PassageEmbedderExecutionTask(
std::unique_ptr<tflite::task::core::TfLiteEngine> tflite_engine)
: … { … }
PassageEmbedderExecutionTask::~PassageEmbedderExecutionTask() { … }
std::optional<OutputType> PassageEmbedderExecutionTask::Execute(
InputType input) { … }
absl::Status PassageEmbedderExecutionTask::Preprocess(
const std::vector<TfLiteTensor*>& input_tensors,
InputType input) { … }
tflite::support::StatusOr<OutputType> PassageEmbedderExecutionTask::Postprocess(
const std::vector<const TfLiteTensor*>& output_tensors,
InputType input) { … }
}