未验证 提交 061240b3 编写于 作者: L liu zhengxi 提交者: GitHub

remove beam_search and beam_search_decode api in paddle.nn (#27660)

上级 0a7bab4e
...@@ -44,8 +44,8 @@ from .control_flow import while_loop #DEFINE_ALIAS ...@@ -44,8 +44,8 @@ from .control_flow import while_loop #DEFINE_ALIAS
# from .control_flow import rnn #DEFINE_ALIAS # from .control_flow import rnn #DEFINE_ALIAS
# from .decode import BeamSearchDecoder #DEFINE_ALIAS # from .decode import BeamSearchDecoder #DEFINE_ALIAS
# from .decode import Decoder #DEFINE_ALIAS # from .decode import Decoder #DEFINE_ALIAS
from .decode import beam_search #DEFINE_ALIAS # from .decode import beam_search #DEFINE_ALIAS
from .decode import beam_search_decode #DEFINE_ALIAS # from .decode import beam_search_decode #DEFINE_ALIAS
# from .decode import crf_decoding #DEFINE_ALIAS # from .decode import crf_decoding #DEFINE_ALIAS
# from .decode import ctc_greedy_decoder #DEFINE_ALIAS # from .decode import ctc_greedy_decoder #DEFINE_ALIAS
# from .decode import dynamic_decode #DEFINE_ALIAS # from .decode import dynamic_decode #DEFINE_ALIAS
......
...@@ -13,16 +13,16 @@ ...@@ -13,16 +13,16 @@
# limitations under the License. # limitations under the License.
# TODO: define api to implement decoding algorithm # TODO: define api to implement decoding algorithm
from ..fluid.layers import beam_search #DEFINE_ALIAS # from ..fluid.layers import beam_search #DEFINE_ALIAS
from ..fluid.layers import beam_search_decode #DEFINE_ALIAS # from ..fluid.layers import beam_search_decode #DEFINE_ALIAS
from ..fluid.layers import gather_tree #DEFINE_ALIAS from ..fluid.layers import gather_tree #DEFINE_ALIAS
__all__ = [ __all__ = [
# 'BeamSearchDecoder', # 'BeamSearchDecoder',
# 'Decoder', # 'Decoder',
'beam_search', # 'beam_search',
'beam_search_decode', # 'beam_search_decode',
# 'crf_decoding', # 'crf_decoding',
# 'ctc_greedy_decoder', # 'ctc_greedy_decoder',
# 'dynamic_decode', # 'dynamic_decode',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册