Skip to content

Commit b24218f

Browse files
sryapspcyppt
authored andcommitted
Add stable API doc (#3194)
Summary: X-link: https://github.com/facebookresearch/FBGEMM/pull/290 As title Pull Request resolved: #3194 Reviewed By: shintaro-iwasaki Differential Revision: D63601834 Pulled By: sryap fbshipit-source-id: ef5bb4eac602027d6051a2c53e5b59ff00ab2afd
1 parent 5346d38 commit b24218f

File tree

8 files changed

+95
-3
lines changed

8 files changed

+95
-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: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
FBGEMM_GPU Stable Python API
2+
============================
3+
4+
We provide the stable API support starting from FBGEMM_GPU v1.0. The following
5+
outlines our 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 release
10+
unless explicitly announced in advance
11+
12+
- Enhanced documentation, ensuring that every stable API has comprehensive and
13+
up-to-date documentation.
14+
15+
- Functionality guarantees are only provided through unit testing framework.
16+
We do NOT guarantee any functionalities that are NOT explicitly tested and
17+
documented in our unit tests.
18+
19+
- No performance guarantees. However, we are committed to providing support on
20+
a best-effort basis.
21+
22+
Stable APIs
23+
-----------
24+
25+
Our stable APIs can be found via the links below:
26+
27+
- :ref:`Table batched embedding (TBE) modules<table-batched-embedding-ops-stable-api>`
28+
29+
- :ref:`Pooled embedding operators<pooled-embedding-operators-stable-api>`
30+
31+
- :ref:`Pooled embedding modules<pooled-embedding-modules-stable-api>`
32+
33+
- :ref:`Sparse operators<sparse-ops-stable-api>`
34+
35+
- :ref:`Jagged tensor operators<jagged-tensor-ops-stable-api>`
36+
37+
- :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)