Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

How to support explicit padding on TFLite backend

Đang mở
#876 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
12/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
machine-learning, tensorflow
Lĩnh vực
machine-learning

Hướng nghiên cứu

The explicit-padding path is in the TFLite graph builder, graph_builder_tflite.cc under services/webnn/tflite in Chromium, which inserts a pad op that counts padded values in averages. The failing case is the averagePool2d WPT conformance test in the webnn/conformance_tests folder. The issue asks how to support exclude-padding semantics, not what exact change to make, so a design decision is needed before any edit. Done would mean the averagePool2d WPT passes on the TFLite backend.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

question

TensorFlow only offers two main padding modes for conv2d and pool2d: VALID and SAME.

  • VALID implies no padding is applied to the input.
  • SAME aims to produce an output with the same spatial dimensions as the input, assuming a stride of 1.

At current implementation of the explicit padding on TFLite backend is to insert a pad operation if the explicit padding can't treated as SAME padding mode, but inserted pad is including value when calculating values for the edges, excluding value is required for the explicit padding. So some WPT failed to run for the unexpected result.

The count_include_pad in ONNX average pool is false by default and the exclude_padding_from_average in CoreML average pool is true by default.

Ngôn ngữ chính
Bikeshed
Star
566
Fork
72
Merge trung bình
6 ngày 5 giờ
Pull request đã merge (30 ngày)
1

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của webmachinelearning/webnn

Tất cả issue của webmachinelearning/webnn

Issue tương tự

Thêm issue về Machine Learning

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.