!7564 [MD]Fix Type Convert error in arm32

Merge pull request !7564 from xulei/cmake
This commit is contained in:
mindspore-ci-bot 2020-10-22 09:18:03 +08:00 committed by Gitee
commit 49f02bfbed
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);