|
|
|
@ -169,6 +169,7 @@ VarHandlePtr GRPCClient::AsyncPrefetchVar(const std::string& ep,
|
|
|
|
|
const framework::Scope& scope,
|
|
|
|
|
const std::string& in_var_name,
|
|
|
|
|
const std::string& out_var_name,
|
|
|
|
|
const std::string& table_name,
|
|
|
|
|
int64_t time_out) {
|
|
|
|
|
const platform::DeviceContext* p_ctx = &ctx;
|
|
|
|
|
const std::string ep_val = ep;
|
|
|
|
@ -184,11 +185,12 @@ VarHandlePtr GRPCClient::AsyncPrefetchVar(const std::string& ep,
|
|
|
|
|
s->Prepare(h, time_out);
|
|
|
|
|
|
|
|
|
|
framework::AsyncIO([in_var_name_val, out_var_name_val, ep_val, p_scope, p_ctx,
|
|
|
|
|
s, method, h, this] {
|
|
|
|
|
s, method, h, table_name, this] {
|
|
|
|
|
auto* var = p_scope->FindVar(in_var_name_val);
|
|
|
|
|
|
|
|
|
|
::grpc::ByteBuffer req;
|
|
|
|
|
SerializeToByteBuffer(in_var_name_val, var, *p_ctx, &req, out_var_name_val);
|
|
|
|
|
SerializeToByteBuffer(in_var_name_val, var, *p_ctx, &req, out_var_name_val,
|
|
|
|
|
0, table_name);
|
|
|
|
|
|
|
|
|
|
VLOG(30) << s->GetVarHandlePtr()->String() << " begin";
|
|
|
|
|
|
|
|
|
|