16 #ifndef TENSORFLOW_SERVING_SERVABLES_TENSORFLOW_TFRT_SAVED_MODEL_SOURCE_ADAPTER_H_
17 #define TENSORFLOW_SERVING_SERVABLES_TENSORFLOW_TFRT_SAVED_MODEL_SOURCE_ADAPTER_H_
19 #include "tensorflow/cc/saved_model/loader.h"
20 #include "tensorflow/core/lib/core/status.h"
21 #include "tensorflow/core/platform/macros.h"
22 #include "tensorflow_serving/core/simple_loader.h"
23 #include "tensorflow_serving/core/source_adapter.h"
24 #include "tensorflow_serving/core/storage_path.h"
25 #include "tensorflow_serving/servables/tensorflow/tfrt_saved_model_factory.h"
26 #include "tensorflow_serving/servables/tensorflow/tfrt_saved_model_source_adapter.pb.h"
27 #include "tensorflow_serving/servables/tensorflow/tfrt_servable.h"
29 namespace tensorflow {
38 static Status Create(
const TfrtSavedModelSourceAdapterConfig& config,
39 std::unique_ptr<TfrtSavedModelSourceAdapter>* adapter);
47 std::unique_ptr<TfrtSavedModelFactory> factory);
49 SimpleLoader<Servable>::CreatorVariant GetServableCreator(
50 std::shared_ptr<TfrtSavedModelFactory> factory,
51 const StoragePath& path)
const;
53 Status Convert(
const StoragePath& path,
54 std::unique_ptr<Loader>* loader)
override;
58 std::shared_ptr<TfrtSavedModelFactory> factory_;