Skip to content

Commit

Permalink
Create a real ServableStateMonitor in tensorflow_model_server (this i…
Browse files Browse the repository at this point in the history
…s a must as the monitor is now used to determine model availability in server_core).

Change: 131982745
  • Loading branch information
fangweili authored and pythonner committed Sep 8, 2016
1 parent 7f09e22 commit b568ac3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions tensorflow_serving/model_servers/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ cc_binary(
"@org_tensorflow//tensorflow/core:lib",
"@org_tensorflow//tensorflow/core/platform/cloud:gcs_file_system",
"//tensorflow_serving/apis:prediction_service_proto",
"//tensorflow_serving/core:servable_state_monitor",
"@grpc//:grpc++",
] + TENSORFLOW_DEPS + SUPPORTED_TENSORFLOW_OPS,
)
Expand Down
3 changes: 2 additions & 1 deletion tensorflow_serving/model_servers/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ limitations under the License.
#include "tensorflow_serving/apis/prediction_service.grpc.pb.h"
#include "tensorflow_serving/apis/prediction_service.pb.h"
#include "tensorflow_serving/config/model_server_config.pb.h"
#include "tensorflow_serving/core/servable_state_monitor.h"
#include "tensorflow_serving/model_servers/server_core.h"
#include "tensorflow_serving/servables/tensorflow/predict_impl.h"
#include "tensorflow_serving/servables/tensorflow/session_bundle_source_adapter.h"
Expand Down Expand Up @@ -104,7 +105,7 @@ tensorflow::Status CreateSourceAdapter(
tensorflow::Status CreateServableStateMonitor(
EventBus<ServableState>* event_bus,
std::unique_ptr<ServableStateMonitor>* monitor) {
*monitor = nullptr;
monitor->reset(new ServableStateMonitor(event_bus));
return tensorflow::Status::OK();
}

Expand Down

0 comments on commit b568ac3

Please sign in to comment.