Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

How to support explicit padding on TFLite backend

オープン
#876 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
12/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
machine-learning, tensorflow

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
Bikeshed
スター
566
フォーク
72
平均マージ
6日 5時間
マージ済み PR(30日)
1

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

webmachinelearning/webnn のほかの issue

webmachinelearning/webnn の issue をすべて見る

似ている issue

Machine Learning の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。