@@ -55,8 +55,8 @@ cc_library(
55
55
"//visibility:public" ,
56
56
],
57
57
deps = [
58
+ ":model_platform_types" ,
58
59
"//tensorflow_serving/config:platform_config_cc_proto" ,
59
- "//tensorflow_serving/model_servers:model_platform_types" ,
60
60
"//tensorflow_serving/servables/tensorflow:saved_model_bundle_source_adapter_cc_proto" ,
61
61
"//tensorflow_serving/servables/tensorflow:session_bundle_config_cc_proto" ,
62
62
],
@@ -291,23 +291,15 @@ cc_library(
291
291
],
292
292
)
293
293
294
+ # This is not inlined by tools bcos inlining non-constant values
295
+ # is not provably safe.
294
296
SUPPORTED_TENSORFLOW_OPS = if_v2 ([]) + if_not_v2 ([
295
297
"@org_tensorflow//tensorflow/contrib:contrib_kernels" ,
296
298
"@org_tensorflow//tensorflow/contrib:contrib_ops_op_lib" ,
297
299
]) + [
298
300
"@org_tensorflow_text//tensorflow_text:ops_lib" ,
299
301
]
300
302
301
- TENSORFLOW_DEPS = [
302
- "@org_tensorflow//tensorflow/core:tensorflow" ,
303
- "//tensorflow_serving/servables/tensorflow:classification_service" ,
304
- "//tensorflow_serving/servables/tensorflow:get_model_metadata_impl" ,
305
- "//tensorflow_serving/servables/tensorflow:multi_inference" ,
306
- "//tensorflow_serving/servables/tensorflow:regression_service" ,
307
- "//tensorflow_serving/servables/tensorflow:saved_model_bundle_source_adapter" ,
308
- "//tensorflow_serving/servables/tensorflow:predict_impl" ,
309
- ]
310
-
311
303
cc_library (
312
304
name = "server_lib" ,
313
305
srcs = [
@@ -337,7 +329,14 @@ cc_library(
337
329
"//tensorflow_serving/config:platform_config_cc_proto" ,
338
330
"//tensorflow_serving/core:availability_preserving_policy" ,
339
331
"//tensorflow_serving/servables/tensorflow:session_bundle_config_cc_proto" ,
340
- ] + TENSORFLOW_DEPS + SUPPORTED_TENSORFLOW_OPS ,
332
+ "@org_tensorflow//tensorflow/core:tensorflow" ,
333
+ "//tensorflow_serving/servables/tensorflow:classification_service" ,
334
+ "//tensorflow_serving/servables/tensorflow:get_model_metadata_impl" ,
335
+ "//tensorflow_serving/servables/tensorflow:multi_inference" ,
336
+ "//tensorflow_serving/servables/tensorflow:regression_service" ,
337
+ "//tensorflow_serving/servables/tensorflow:saved_model_bundle_source_adapter" ,
338
+ "//tensorflow_serving/servables/tensorflow:predict_impl" ,
339
+ ] + SUPPORTED_TENSORFLOW_OPS ,
341
340
)
342
341
343
342
cc_library (
0 commit comments