Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
lint
  • Loading branch information
fanchenkong1 committed Jul 28, 2025
commit cded5882c970e7e70a18a5415bdecf1700c112da
4 changes: 2 additions & 2 deletions onnxruntime/core/providers/xnnpack/nn/average_pool.cc
Original file line number Diff line number Diff line change
Expand Up @@ -240,10 +240,10 @@ Status AveragePool::Compute(OpKernelContext* context) const {

if (avgpool_type_ == OpComputeType::op_compute_type_fp32) {
status = xnn_setup_average_pooling2d_nhwc_f32(op0_.get(), X.Data<float>(),
Y.MutableData<float>());
Y.MutableData<float>());
} else if (avgpool_type_ == OpComputeType::op_compute_type_fp16) {
status = xnn_setup_average_pooling2d_nhwc_f16(op0_.get(), X.Data<MLFloat16>(),
Y.MutableData<MLFloat16>());
Y.MutableData<MLFloat16>());
}

if (status != xnn_status_success) {
Expand Down
8 changes: 4 additions & 4 deletions onnxruntime/core/providers/xnnpack/tensor/resize.cc
Original file line number Diff line number Diff line change
Expand Up @@ -274,16 +274,16 @@ Status Resize::ComputeInternal(OpKernelContext* ctx, const Tensor* input,

if (op_type_ == OpComputeType::op_compute_type_fp32) {
status = xnn_setup_resize_bilinear2d_nhwc(op0_.get(), workspace.get(), input->Data<float>(),
output->MutableData<float>());
output->MutableData<float>());
} else if (op_type_ == OpComputeType::op_compute_type_fp16) {
status = xnn_setup_resize_bilinear2d_nhwc(op0_.get(), workspace.get(), input->Data<MLFloat16>(),
output->MutableData<MLFloat16>());
output->MutableData<MLFloat16>());
} else if (op_type_ == OpComputeType::op_compute_type_qu8) {
status = xnn_setup_resize_bilinear2d_nhwc(op0_.get(), workspace.get(), input->Data<uint8_t>(),
output->MutableData<uint8_t>());
output->MutableData<uint8_t>());
} else {
status = xnn_setup_resize_bilinear2d_nhwc(op0_.get(), workspace.get(), input->Data<int8_t>(),
output->MutableData<int8_t>());
output->MutableData<int8_t>());
}

if (status != xnn_status_success) {
Expand Down