mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-17 21:10:43 +00:00
Fix bug in ReduceSum with noop_with_empty_axes (#9301)
This commit is contained in:
parent
7b61bca6df
commit
da56f01ac2
1 changed files with 2 additions and 2 deletions
|
|
@ -657,8 +657,8 @@ bool CommonFastReduceCopy(OpKernelContext* ctx, std::vector<int64_t>& input_axes
|
|||
if (input_axes.empty() && noop_with_empty_axes) {
|
||||
const Tensor* input = ctx->Input<Tensor>(0);
|
||||
auto* output = ctx->Output(0, input->Shape());
|
||||
memcpy(reinterpret_cast<void*>(output->template MutableData<float>()),
|
||||
reinterpret_cast<const void*>(input->template Data<float>()),
|
||||
memcpy(output->MutableDataRaw(),
|
||||
input->DataRaw(),
|
||||
input->SizeInBytes());
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue