deps = [
":grpc_stub",
"//tensorflow/compiler/xla/client",
- "//tensorflow/compiler/xla/client:computation_builder",
+ "//tensorflow/compiler/xla/client/xla_client:xla_builder",
"//tensorflow/compiler/xla/tests:literal_test_util",
"//tensorflow/core:framework_internal",
"//tensorflow/core:lib",
#include "grpc++/security/credentials.h"
#include "tensorflow/compiler/xla/client/client.h"
-#include "tensorflow/compiler/xla/client/computation_builder.h"
+#include "tensorflow/compiler/xla/client/xla_client/xla_builder.h"
#include "tensorflow/compiler/xla/rpc/grpc_stub.h"
#include "tensorflow/compiler/xla/tests/literal_test_util.h"
#include "tensorflow/core/lib/io/path.h"
}
TEST_F(GRPCClientTestBase, AxpyTenValues) {
- ComputationBuilder builder(client_.get(), "axpy_10");
+ XlaBuilder builder("axpy_10");
auto alpha = builder.ConstantR0<float>(3.1415926535);
auto x = builder.ConstantR1<float>(
{-1.0, 1.0, 2.0, -2.0, -3.0, 3.0, 4.0, -4.0, -5.0, 5.0});
[this, arg, result]() { return service_->Execute(arg, result); });
}
+::grpc::Status GRPCService::ExecuteGraph(::grpc::ServerContext* /*context*/,
+ const ExecuteGraphRequest* arg,
+ ExecuteResponse* result) {
+ return DelegateRPC(
+ [this, arg, result]() { return service_->ExecuteGraph(arg, result); });
+}
+
::grpc::Status GRPCService::ExecuteAsync(::grpc::ServerContext* context,
const ExecuteAsyncRequest* arg,
ExecuteAsyncResponse* result) {
const ExecuteRequest* arg,
ExecuteResponse* result) override;
+ ::grpc::Status ExecuteGraph(::grpc::ServerContext* context,
+ const ExecuteGraphRequest* arg,
+ ExecuteResponse* result) override;
+
::grpc::Status ExecuteAsync(::grpc::ServerContext* context,
const ExecuteAsyncRequest* arg,
ExecuteAsyncResponse* result) override;
":libxsmm_interface",
],
visibility = [
- "//tensorflow/core/kernels:__pkg__",
"//third_party/eigen3:__pkg__",
+ "//tensorflow/core/kernels:__pkg__",
],
)