Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add alias for RNN APIs from paddle.nn.layer.rnn explicitly #27784

Merged
merged 1 commit into from
Oct 10, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletions python/paddle/nn/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,10 +148,17 @@
from .layer.norm import BatchNorm1d #DEFINE_ALIAS
from .layer.norm import BatchNorm2d #DEFINE_ALIAS
from .layer.norm import BatchNorm3d #DEFINE_ALIAS
from .layer.rnn import *
# from .layer.rnn import RNNCell #DEFINE_ALIAS
# from .layer.rnn import GRUCell #DEFINE_ALIAS
# from .layer.rnn import LSTMCell #DEFINE_ALIAS

from .layer.rnn import RNNCellBase #DEFINE_ALIAS
from .layer.rnn import SimpleRNNCell #DEFINE_ALIAS
from .layer.rnn import LSTMCell #DEFINE_ALIAS
from .layer.rnn import GRUCell #DEFINE_ALIAS
from .layer.rnn import RNN #DEFINE_ALIAS
from .layer.rnn import BiRNN #DEFINE_ALIAS
from .layer.rnn import SimpleRNN #DEFINE_ALIAS
from .layer.rnn import LSTM #DEFINE_ALIAS
from .layer.rnn import GRU #DEFINE_ALIAS

from .layer.transformer import MultiHeadAttention
from .layer.transformer import TransformerEncoderLayer
from .layer.transformer import TransformerEncoder
Expand Down