fix type convert error in arm32

This commit is contained in:
xulei2020 2020-10-21 15:56:37 +08:00
parent 359543d663
commit 6d3d6633cb
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ Status RandomSampler::GetNextSample(std::unique_ptr<DataBuffer> *out_buffer) {
RETURN_IF_NOT_OK(GetAssociatedChildId(&sampled_id, sampled_id));
}
*(id_ptr + i) = sampled_id;
*(id_ptr + static_cast<ptrdiff_t>(i)) = sampled_id;
}
next_id_ = last_id;
TensorRow row(1, sampleIds);