.. role:: hidden
    :class: hidden-section

torchtext.nn
=======================================

.. automodule:: torchtext.nn
.. currentmodule:: torchtext.nn

:hidden:`MultiheadAttentionContainer`
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. autoclass:: MultiheadAttentionContainer
    :members:
    :special-members: __init__

:hidden:`InProjContainer`
~~~~~~~~~~~~~~~~~~~~~~~~~

.. autoclass:: InProjContainer 
    :members:
    :special-members: __init__

:hidden:`ScaledDotProduct`
~~~~~~~~~~~~~~~~~~~~~~~~~~

.. autoclass:: ScaledDotProduct 
    :members:
    :special-members: __init__