Skip to content

Commit d840138

Browse files
sryapfacebook-github-bot
authored andcommitted
Add stable API doc (pytorch#3194)
Summary: X-link: facebookresearch/FBGEMM#290 As title Pull Request resolved: pytorch#3194 Differential Revision: D63601834 Pulled By: sryap
1 parent 3bf1bab commit d840138

File tree

8 files changed

+96
-3
lines changed

8 files changed

+96
-3
lines changed

fbgemm_gpu/docs/src/fbgemm_gpu-python-api/jagged_tensor_ops.rst

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,22 @@ Jagged Tensor Operators
33

44
.. automodule:: fbgemm_gpu
55

6+
.. _jagged-tensor-ops-stable-api:
7+
8+
Stable API
9+
----------
10+
11+
.. autofunction:: torch.ops.fbgemm.jagged_to_padded_dense
12+
13+
Other API
14+
---------
15+
616
.. autofunction:: torch.ops.fbgemm.jagged_2d_to_dense
717

818
.. autofunction:: torch.ops.fbgemm.jagged_1d_to_dense
919

1020
.. autofunction:: torch.ops.fbgemm.dense_to_jagged
1121

12-
.. autofunction:: torch.ops.fbgemm.jagged_to_padded_dense
13-
1422
.. autofunction:: torch.ops.fbgemm.jagged_dense_elementwise_add
1523

1624
.. autofunction:: torch.ops.fbgemm.jagged_dense_elementwise_add_jagged_output

fbgemm_gpu/docs/src/fbgemm_gpu-python-api/pooled_embedding_modules.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,13 @@ Pooled Embedding Modules
33

44
.. automodule:: fbgemm_gpu
55

6+
.. _pooled-embedding-modules-stable-api:
7+
8+
Stable API
9+
----------
10+
611
.. autoclass:: fbgemm_gpu.permute_pooled_embedding_modules.PermutePooledEmbeddings
712
:members: __call__
13+
14+
Other API
15+
---------

fbgemm_gpu/docs/src/fbgemm_gpu-python-api/pooled_embedding_ops.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@ Pooled Embedding Operators
33

44
.. automodule:: fbgemm_gpu
55

6+
.. _pooled-embedding-operators-stable-api:
7+
8+
Stable API
9+
----------
10+
611
.. autofunction:: torch.ops.fbgemm.merge_pooled_embeddings
712

813
.. autofunction:: torch.ops.fbgemm.permute_pooled_embs
14+
15+
Other API
16+
---------

fbgemm_gpu/docs/src/fbgemm_gpu-python-api/quantize_ops.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,12 @@ Quantization Operators
33

44
.. automodule:: fbgemm_gpu
55

6+
.. _quantize-ops-stable-api:
7+
8+
Stable API
9+
----------
10+
611
.. autofunction:: torch.ops.fbgemm.FloatOrHalfToFusedNBitRowwiseQuantizedSBHalf
12+
13+
Other API
14+
---------

fbgemm_gpu/docs/src/fbgemm_gpu-python-api/sparse_ops.rst

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ Sparse Operators
33

44
.. automodule:: fbgemm_gpu
55

6+
.. _sparse-ops-stable-api:
7+
8+
Stable API
9+
----------
10+
611
.. autofunction:: torch.ops.fbgemm.permute_2D_sparse_data
712

813
.. autofunction:: torch.ops.fbgemm.permute_1D_sparse_data
@@ -17,4 +22,6 @@ Sparse Operators
1722

1823
.. autofunction:: torch.ops.fbgemm.keyed_jagged_index_select_dim1
1924

20-
.. autofunction:: torch.ops.fbgemm.block_bucketize_sparse_features
25+
.. autofunction:: torch.ops.fbgemm.block_bucketize_sparse_features
26+
27+
Other API
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,18 @@
11
Table Batched Embedding (TBE) Training Module
22
=============================================
33

4+
.. _table-batched-embedding-ops-stable-api:
5+
6+
Stable API
7+
----------
8+
49
.. autoclass:: fbgemm_gpu.split_table_batched_embeddings_ops_training.SplitTableBatchedEmbeddingBagsCodegen
510
:members: forward,
611
split_embedding_weights,
712
split_optimizer_states,
813
set_learning_rate,
914
update_hyper_parameters,
1015
set_optimizer_step
16+
17+
Other API
18+
---------
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
FBGEMM_GPU Stable Python API
2+
============================
3+
4+
We provide the stable API support in FBGEMM_GPU v1. The following outlines our
5+
supports:
6+
7+
- API backward compatibility guarantees via thorough testing. We guarantee that
8+
our stable APIs will be backward compatible within a major version, meaning
9+
that the stable APIs for v1.0.0 will be compatible with every future v1.x.x
10+
release.
11+
12+
- Enhanced documentation, ensuring that every stable API has comprehensive and
13+
up-to-date documentation.
14+
15+
- No explicit functionality guarantees. Functionality guarantees are only
16+
provided through unit testing framework. We do NOT guarantee any
17+
functionalities that are NOT explicitly tested and documented in our unit
18+
tests.
19+
20+
- No performance guarantees. However, we are committed to providing support on
21+
a best-effort basis.
22+
23+
Stable APIs
24+
-----------
25+
26+
Our stable APIs can be found via the links below:
27+
28+
- :ref:`Table batched embedding (TBE) modules<table-batched-embedding-ops-stable-api>`
29+
30+
- :ref:`Pooled embedding operators<pooled-embedding-operators-stable-api>`
31+
32+
- :ref:`Pooled embedding modules<pooled-embedding-modules-stable-api>`
33+
34+
- :ref:`Sparse operators<sparse-ops-stable-api>`
35+
36+
- :ref:`Jagged tensor operators<jagged-tensor-ops-stable-api>`
37+
38+
- :ref:`Quantization operators<quantize-ops-stable-api>`

fbgemm_gpu/docs/src/index.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,14 @@ Table of Contents
5656

5757
fbgemm_gpu-overview/jagged-tensor-ops/JaggedTensorOps.rst
5858

59+
.. _fbgemm.toc.api.stable:
60+
61+
.. toctree::
62+
:maxdepth: 1
63+
:caption: FBGEMM Stable API
64+
65+
fbgemm_gpu-stable-api/python_api.rst
66+
5967
.. _fbgemm.toc.api.cpp:
6068

6169
.. toctree::

0 commit comments

Comments
 (0)