mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-06-06 00:03:22 +00:00
Fix buffer overrun bug in CPU upsample op (#1501)
This commit is contained in:
parent
6df4bc2ebe
commit
1a115ed8cb
1 changed files with 1 additions and 1 deletions
|
|
@ -342,7 +342,7 @@ Status Upsample<T>::BaseCompute(OpKernelContext* context, const std::vector<floa
|
|||
Tensor* Y = context->Output(0, Y_dims);
|
||||
|
||||
if (no_scale) {
|
||||
memcpy(Y->MutableDataRaw(), X->DataRaw(), Y->Size() * sizeof(T));
|
||||
memcpy(Y->MutableDataRaw(), X->DataRaw(), Y->Size());
|
||||
return Status::OK();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue