Teach Tangent{T} about NoTangent vs ZeroTangent?

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

メンテナーはふだん 1 日以内に返信

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
30/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
julia
領域
tooling

調査の方向性

まず、Tangent{T} における canonicalizing と、それに関連する getproperty の動作を読みます。Char、Bool、Int、Symbol などのフィールドをどのように区別するかを判断しつつ、primal 型が引き続き接空間を持つ可能性がある場合を維持します。完了とは、両方のパスが適切な NoTangent または ZeroTangent 表現を返すことです。

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

説明

Structural Tangent

Right now canonicalizing at Tangent{T} inserts ZeroTangent for all fields of the T that don't have explict tangents recorded.
As does getproperty.
This is correct in that they don't have anything recorded as they don't get used to determine the output -- which is what ZeroTangent represents.
But it is also true for if the primal field is Char or Bool or Int or Symbol etc that they don't have a tangent space at all so NoTangent is also correct, and kinda more expected.

We can't always get it right just from the primal type, since it could be a indicator float etc.
But we can probably do pretty well

主要言語
Julia
スター
267
フォーク
66
平均マージ
1日 1時間
マージ済み PR(30日)
9

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

JuliaDiff/ChainRulesCore.jl のほかの issue

JuliaDiff/ChainRulesCore.jl の issue をすべて見る

似ている issue

Julia の issue をもっと見る

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

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