|
|
@ -151,6 +151,7 @@ bool VariableResponse::CopySelectRowsData(
|
|
|
|
::google::protobuf::io::CodedInputStream* input,
|
|
|
|
::google::protobuf::io::CodedInputStream* input,
|
|
|
|
const platform::DeviceContext& ctx, int length) {
|
|
|
|
const platform::DeviceContext& ctx, int length) {
|
|
|
|
auto* slr = GetVar()->GetMutable<framework::SelectedRows>();
|
|
|
|
auto* slr = GetVar()->GetMutable<framework::SelectedRows>();
|
|
|
|
|
|
|
|
slr->mutable_rows()->clear();
|
|
|
|
slr->mutable_rows()->resize(length /
|
|
|
|
slr->mutable_rows()->resize(length /
|
|
|
|
framework::SizeOfType(typeid(int64_t))); // int64
|
|
|
|
framework::SizeOfType(typeid(int64_t))); // int64
|
|
|
|
int64_t* rows_data = slr->mutable_rows()->data();
|
|
|
|
int64_t* rows_data = slr->mutable_rows()->data();
|
|
|
|