Skip to content

Commit 83c3c17

Browse files
authored
Merge pull request #1043 from netfs/cpr1.10
Cherrypick changes from master
2 parents e16a67d + b7179d8 commit 83c3c17

File tree

6 files changed

+573
-134
lines changed

6 files changed

+573
-134
lines changed

tensorflow_serving/apis/prediction_service_pb2.py

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,15 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414
# ==============================================================================
15-
# Generated by the protocol buffer compiler. DO NOT EDIT!
16-
# source: tensorflow_serving/apis/prediction_service.proto
15+
#
1716
# To regenerate run
1817
# python -m grpc.tools.protoc --python_out=. --grpc_python_out=. -I. tensorflow_serving/apis/prediction_service.proto
1918

19+
### @@AUTOGENERATED SECTION STARTS HERE@@
20+
21+
# Generated by the protocol buffer compiler. DO NOT EDIT!
22+
# source: tensorflow_serving/apis/prediction_service.proto
23+
2024
import sys
2125
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
2226
from google.protobuf import descriptor as _descriptor
@@ -112,3 +116,17 @@
112116
DESCRIPTOR.services_by_name['PredictionService'] = _PREDICTIONSERVICE
113117

114118
# @@protoc_insertion_point(module_scope)
119+
120+
### @@AUTOGENERATED SECTION ENDS HERE@@
121+
122+
123+
def beta_create_PredictionService_stub(channel):
124+
import warnings
125+
from tensorflow_serving.apis import prediction_service_pb2_grpc
126+
warnings.simplefilter('default')
127+
warnings.warn(
128+
'beta_create_PredictionService_stub() method is deprecated. '
129+
'This method will be removed in near future versions of TF '
130+
'Serving. Please switch to GA gRPC API in '
131+
'prediction_service_pb2_grpc.', DeprecationWarning)
132+
return prediction_service_pb2_grpc.PredictionServiceStub(channel._channel)

tensorflow_serving/model_servers/BUILD

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,27 @@ py_test(
343343
],
344344
)
345345

346+
py_test(
347+
name = "tensorflow_model_server_beta_grpc_test",
348+
size = "medium",
349+
srcs = ["tensorflow_model_server_beta_grpc_test.py"],
350+
data = [
351+
":tensorflow_model_server",
352+
"@org_tensorflow//tensorflow/cc/saved_model:saved_model_half_plus_two",
353+
#"//tensorflow_serving/servables/tensorflow/testdata:batching_config.txt",
354+
"//tensorflow_serving/servables/tensorflow/testdata:good_model_config.txt",
355+
"//tensorflow_serving/servables/tensorflow/testdata:saved_model_half_plus_three/00000123/assets/foo.txt",
356+
"//tensorflow_serving/servables/tensorflow/testdata:saved_model_half_plus_three/00000123/saved_model.pb",
357+
"//tensorflow_serving/servables/tensorflow/testdata:saved_model_half_plus_three/00000123/variables/variables.data-00000-of-00001",
358+
"//tensorflow_serving/servables/tensorflow/testdata:saved_model_half_plus_three/00000123/variables/variables.index",
359+
],
360+
tags = ["notsan"],
361+
deps = [
362+
"//tensorflow_serving/apis:prediction_service_proto_py_pb2",
363+
"@org_tensorflow//tensorflow:tensorflow_py",
364+
],
365+
)
366+
346367
py_binary(
347368
name = "tensorflow_model_server_test_client",
348369
srcs = ["tensorflow_model_server_test_client.py"],

0 commit comments

Comments
 (0)