forked from mindspore-Ecosystem/mindspore
fix type convert error in arm32
This commit is contained in:
parent
359543d663
commit
6d3d6633cb
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue