Skip to content

Commit e150f77

Browse files
committed
DOC: add fact. embedding to API
1 parent f2c1866 commit e150f77

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

doc/user_guide/factorized_embeddings.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,7 @@ input and output tensorized shapes, to have 3 dimensions each:
1616
1717
Or, you can create it by decomposing an existing embedding layer:
1818

19+
.. code-block:: python
20+
1921
from_embedding = tltorch.FactorizedEmbedding.from_embedding(embedding_layer, auto_reshape=True,
2022
factorization='blocktt', n_tensorized_modes=3, rank=0.4)

doc/user_guide/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,5 @@ It builds on top of `TensorLy <tensorly.org>`_ and enables anyone to use tensor
1313
trl
1414
factorized_conv
1515
tensorized_linear
16+
factorized_embeddings
1617
tensor_hooks

0 commit comments

Comments
 (0)