Skip to content

Conversation

@Superjomn
Copy link
Contributor

@Superjomn Superjomn commented Nov 22, 2017

fixes: #5812

int end_id = Attr<int>("end_id");
LOG(INFO) << "init beam search";
BeamSearch alg(ids, scores, level, beam_size, end_id);
BeamSearch<size_t, float> alg(ids, scores, level, beam_size, end_id);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here acctually assume the input data is size_t and float.

Please reference here to fix it.

@lcy-seso lcy-seso added the NMT label Feb 7, 2018
@Superjomn Superjomn closed this May 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BeamSearch Related Op should support double precision

3 participants