RFC: add `exp2` function to the standard
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 35/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- python
- 領域
- api, documentation
調査の方向性
まず array API の仕様と、参照されている elementwise_functions.py 内の log2 の定義を読み、その後 common_apis.csv のエントリとリンクされている先行実装を比較します。exp2 を標準に含めるかどうかについてプロジェクトとして決定し、既存の仕様と一貫した形で承認された API を文書化できれば完了です。
索引モデルが issue の本文から書いたものです。
説明
This RFC requests to include a new API in the array API specification for the purpose of computing the base-2 exponential.
Overview
Based on array comparison data, the API is available in the majority of libraries in the PyData ecosystem.
The Array API specification currently includes log2, exp, and pow, but does not include the IEEE 754 function exp2. Would be nice to add for completeness.
While this can currently be achieved now by using pow, exp2 is commonly implemented as a slightly more ergonomic perf path.
Prior art
- NumPy: https://numpy.org/doc/stable/reference/generated/numpy.exp2.html
- PyTorch: https://pytorch.org/docs/stable/generated/torch.exp2.html
- TensorFlow: https://www.tensorflow.org/api_docs/python/tf/experimental/numpy/exp2
- JAX: https://docs.jax.dev/en/latest/_autosummary/jax.numpy.exp2.html#jax.numpy.exp2
- CuPy: https://docs.cupy.dev/en/stable/reference/generated/cupy.exp2.html
- Dask: https://docs.dask.org/en/stable/generated/dask.array.exp2.html
- ndonnx: (Not currently implemented)
- C99: https://en.cppreference.com/w/c/numeric/math/exp2
Proposal:
def exp2(x: array, /) -> array
cc @kgryte
- 主要言語
- Python
- スター
- 281
- フォーク
- 52
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
data-apis/array-api のほかの issue
-
難易度 1/5 1〜3時間 初心者へのやさしさ 88/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
-
Maintenance
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
data-apis/array-api の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
syfoud/Simulated_Scepter#172 ·
-
A cancelled tests run makes the coverage comment workflow fail and reports it as a red check on main オープンarea: ci bug perceived difficulty: 3
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
Nitjsefnie-Harness-Commons/daedalus#921 · コメント 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
EleutherAI/lm-evaluation-harness#4207 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
ClickHouse/clickhouse-connect#1057 ·