Skip to content

Commit efc8db8

Browse files
authored
Merge pull request #548 from kirilg/branch_164134747
Upstream changes
2 parents 78ead23 + 2740091 commit efc8db8

File tree

6 files changed

+15
-361
lines changed

6 files changed

+15
-361
lines changed

tensorflow_serving/example/BUILD

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -26,21 +26,6 @@ py_library(
2626
srcs_version = "PY2AND3",
2727
)
2828

29-
# TODO(b/32628014): remove mnist_export after we no longer support
30-
# SessionBundle.
31-
py_binary(
32-
name = "mnist_export",
33-
srcs = [
34-
"mnist_export.py",
35-
],
36-
srcs_version = "PY2AND3",
37-
deps = [
38-
":mnist_input_data",
39-
"@org_tensorflow//tensorflow:tensorflow_py",
40-
"@org_tensorflow//tensorflow/contrib/session_bundle:exporter",
41-
],
42-
)
43-
4429
py_binary(
4530
name = "mnist_saved_model",
4631
srcs = [
@@ -67,21 +52,6 @@ py_binary(
6752
],
6853
)
6954

70-
# TODO(b/32628014): remove inception_export after we no longer support
71-
# SessionBundle.
72-
py_binary(
73-
name = "inception_export",
74-
srcs = [
75-
"inception_export.py",
76-
],
77-
srcs_version = "PY2AND3",
78-
deps = [
79-
"@inception_model//inception",
80-
"@org_tensorflow//tensorflow:tensorflow_py",
81-
"@org_tensorflow//tensorflow/contrib/session_bundle:exporter",
82-
],
83-
)
84-
8555
py_binary(
8656
name = "inception_saved_model",
8757
srcs = [

tensorflow_serving/example/inception_export.py

Lines changed: 0 additions & 172 deletions
This file was deleted.

tensorflow_serving/example/mnist_export.py

Lines changed: 0 additions & 117 deletions
This file was deleted.

tensorflow_serving/example/mnist_saved_model.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,15 @@
1414
# ==============================================================================
1515

1616
#!/usr/bin/env python2.7
17-
"""Train and export a simple Softmax Regression TensorFlow model.
17+
r"""Train and export a simple Softmax Regression TensorFlow model.
1818
1919
The model is from the TensorFlow "MNIST For ML Beginner" tutorial. This program
2020
simply follows all its training instructions, and uses TensorFlow SavedModel to
2121
export the trained model with proper signatures that can be loaded by standard
2222
tensorflow_model_server.
2323
24-
Usage: mnist_export.py [--training_iteration=x] [--model_version=y] export_dir
24+
Usage: mnist_saved_model.py [--training_iteration=x] [--model_version=y] \
25+
export_dir
2526
"""
2627

2728
import os

tensorflow_serving/model_servers/main.cc

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ int main(int argc, char** argv) {
308308
tensorflow::string model_name = "default";
309309
tensorflow::int32 file_system_poll_wait_seconds = 1;
310310
tensorflow::string model_base_path;
311-
bool use_saved_model = true;
311+
const bool use_saved_model = true;
312312
// Tensorflow session parallelism of zero means that both inter and intra op
313313
// thread pools will be auto configured.
314314
tensorflow::int64 tensorflow_session_parallelism = 0;
@@ -338,11 +338,6 @@ int main(int argc, char** argv) {
338338
&file_system_poll_wait_seconds,
339339
"interval in seconds between each poll of the file "
340340
"system for new model version"),
341-
tensorflow::Flag("use_saved_model", &use_saved_model,
342-
"If true, use SavedModel in the server; otherwise, use "
343-
"SessionBundle. It is used by tensorflow serving team "
344-
"to control the rollout of SavedModel and is not "
345-
"expected to be set by users directly."),
346341
tensorflow::Flag("tensorflow_session_parallelism",
347342
&tensorflow_session_parallelism,
348343
"Number of threads to use for running a "
@@ -353,8 +348,7 @@ int main(int argc, char** argv) {
353348
"If non-empty, read an ascii PlatformConfigMap protobuf "
354349
"from the supplied file name, and use that platform "
355350
"config instead of the Tensorflow platform. (If used, "
356-
"--enable_batching and --use_saved_model are "
357-
"ignored.)")};
351+
"--enable_batching is ignored.)")};
358352
string usage = tensorflow::Flags::Usage(argv[0], flag_list);
359353
const bool parse_result = tensorflow::Flags::Parse(&argc, argv, flag_list);
360354
if (!parse_result || (model_base_path.empty() && model_config_file.empty())) {

0 commit comments

Comments
 (0)