From 061240b34af4579244d329445d360637c0992684 Mon Sep 17 00:00:00 2001 From: liu zhengxi <380185688@qq.com> Date: Fri, 9 Oct 2020 19:32:15 +0800 Subject: [PATCH] remove beam_search and beam_search_decode api in paddle.nn (#27660) --- python/paddle/nn/__init__.py | 4 ++-- python/paddle/nn/decode.py | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/python/paddle/nn/__init__.py b/python/paddle/nn/__init__.py index 82fec5c0faa..427a2f91c96 100644 --- a/python/paddle/nn/__init__.py +++ b/python/paddle/nn/__init__.py @@ -44,8 +44,8 @@ from .control_flow import while_loop #DEFINE_ALIAS # from .control_flow import rnn #DEFINE_ALIAS # from .decode import BeamSearchDecoder #DEFINE_ALIAS # from .decode import Decoder #DEFINE_ALIAS -from .decode import beam_search #DEFINE_ALIAS -from .decode import beam_search_decode #DEFINE_ALIAS +# from .decode import beam_search #DEFINE_ALIAS +# from .decode import beam_search_decode #DEFINE_ALIAS # from .decode import crf_decoding #DEFINE_ALIAS # from .decode import ctc_greedy_decoder #DEFINE_ALIAS # from .decode import dynamic_decode #DEFINE_ALIAS diff --git a/python/paddle/nn/decode.py b/python/paddle/nn/decode.py index f01a5ed15b6..214744217e9 100644 --- a/python/paddle/nn/decode.py +++ b/python/paddle/nn/decode.py @@ -13,16 +13,16 @@ # limitations under the License. # TODO: define api to implement decoding algorithm -from ..fluid.layers import beam_search #DEFINE_ALIAS -from ..fluid.layers import beam_search_decode #DEFINE_ALIAS +# from ..fluid.layers import beam_search #DEFINE_ALIAS +# from ..fluid.layers import beam_search_decode #DEFINE_ALIAS from ..fluid.layers import gather_tree #DEFINE_ALIAS __all__ = [ # 'BeamSearchDecoder', # 'Decoder', - 'beam_search', - 'beam_search_decode', + # 'beam_search', + # 'beam_search_decode', # 'crf_decoding', # 'ctc_greedy_decoder', # 'dynamic_decode', -- GitLab