`knot_weights` function expects only a `int` (but not a `tensor`) as a parameter

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
python, tensorflow

調査の方向性

tensorflow_graphics.math.interpolation.bspline.knot_weights から始め、特に @tf.function 内で tf.constant の値を渡して、報告された失敗を再現します。テンソル入力をどのように扱うことが意図されているかを判断し、対象を絞ったテストで選択した動作を検証します。完了条件は、グラフ生成で unhashable-tensor 例外が発生しなくなることです。

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

説明

The knot_weights function, from:
tensorflow_graphics.math.interpolation.bspline
requires an int for the number of knots and the degree parameters (it is mentioned in the documentation), and if a tf.constant is passed, the unhashable tensor exception will occur.

Although it is not really a bug, this seems to be a design flaw, and not expected at all (especially that other parameters are expecting tensors), since it breaks graph generation with @tf.function, unless I will convert it explicitly to int, as pointed here: https://github.com/tensorflow/tensorflow/issues/27491#issuecomment-890887810

主要言語
Python
スター
2.8k
フォーク
374
平均マージ
5日 9時間
マージ済み PR(30日)
1

環境構築

はじめの一歩

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

tensorflow/graphics のほかの issue

tensorflow/graphics の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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