Skip to content

A question on the beam search #12

@wjb123

Description

@wjb123

In this line,

num_hyp -= 1 # we can fit another hypotheses as this one is over
, the decrease of num_hyp will increase the value of k, which then leads to the out-of-bounds for the words[idx][k], I don't know why you use num_hyp?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions