18 #ifndef TENSORFLOW_SERVING_SERVABLES_TENSORFLOW_TFRT_REGRESSOR_H_
19 #define TENSORFLOW_SERVING_SERVABLES_TENSORFLOW_TFRT_REGRESSOR_H_
23 #include "absl/types/optional.h"
24 #include "tensorflow/cc/saved_model/loader.h"
25 #include "tensorflow/core/lib/core/status.h"
26 #include "tensorflow/core/platform/threadpool_options.h"
27 #include "tensorflow/core/tfrt/saved_model/saved_model.h"
28 #include "tensorflow_serving/apis/regressor.h"
30 namespace tensorflow {
33 Status PreProcessRegression(
const tfrt::FunctionMetadata& function_metadata);
36 Status PostProcessRegressionResult(
37 int num_examples,
const std::vector<string>& output_tensor_names,
38 const std::vector<Tensor>& output_tensors, RegressionResult* result);
41 Status RunRegress(
const tfrt::SavedModel::RunOptions& run_options,
42 const absl::optional<int64_t>& servable_version,
43 tfrt::SavedModel* saved_model,
44 const RegressionRequest& request,
45 RegressionResponse* response);