• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* Copyright 2019 The TensorFlow Authors. All Rights Reserved.
2 
3 Licensed under the Apache License, Version 2.0 (the "License");
4 you may not use this file except in compliance with the License.
5 You may obtain a copy of the License at
6 
7     http://www.apache.org/licenses/LICENSE-2.0
8 
9 Unless required by applicable law or agreed to in writing, software
10 distributed under the License is distributed on an "AS IS" BASIS,
11 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 See the License for the specific language governing permissions and
13 limitations under the License.
14 ==============================================================================*/
15 
16 #ifndef TENSORFLOW_CORE_DISTRIBUTED_RUNTIME_RPC_EAGER_GRPC_EAGER_SERVICE_H_
17 #define TENSORFLOW_CORE_DISTRIBUTED_RUNTIME_RPC_EAGER_GRPC_EAGER_SERVICE_H_
18 
19 #include "tensorflow/core/protobuf/eager_service.grpc.pb.h"
20 #include "tensorflow/stream_executor/platform/port.h"
21 
22 #ifndef PLATFORM_GOOGLE
23 
24 namespace tensorflow {
25 namespace eager {
26 namespace grpc {
27 
28 // Google internal gRPC generates services under namespace "grpc", but
29 // opensource version does not add any additional namespaces.
30 // We currently use proto_library BUILD rule with cc_grpc_version and
31 // has_services arguments. This rule is deprecated but we can't cleanly migrate
32 // to cc_grpc_library rule yet. The internal version takes service_namespace
33 // argument, which would have solved the namespace issue, but the external one
34 // does not.
35 //
36 // Creating aliases here to make sure we can access services under namespace
37 // "tensorflow::grpc" both in google internal and open-source.
38 using ::tensorflow::eager::EagerService;
39 
40 }  // namespace grpc
41 }  // namespace eager
42 }  // namespace tensorflow
43 #endif  // PLATFORM_GOOGLE
44 
45 #endif  // TENSORFLOW_CORE_DISTRIBUTED_RUNTIME_RPC_EAGER_GRPC_EAGER_SERVICE_H_
46