Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Error when trying to generate text with sequence sampling #14872

Closed
anirudhacharya opened this issue May 3, 2019 · 1 comment
Closed

Error when trying to generate text with sequence sampling #14872

anirudhacharya opened this issue May 3, 2019 · 1 comment

Comments

@anirudhacharya
Copy link
Member

Encountering the following error when I try to run this sequence sampler example from gluon-nlp toolkit -

Namespace(alpha=0.0, beam_size=2, bos=['I love it'], eos='.', gpu=None, k=5, lm_model='awd_lstm_lm_1150', max_length=20, print_num=1, temperature=1.0, use_beam_search=False, use_sampling=True)
terminate called after throwing an instance of 'std::out_of_range'
  what():  vector::_M_range_check: __n (which is 1) >= this->size() (which is 1)
Aborted (core dumped)

The error was likely introduced in this commit 3f3ba92

cc @reminisce

@mxnet-label-bot
Copy link
Contributor

Hey, this is the MXNet Label Bot.
Thank you for submitting the issue! I will try and suggest some labels so that the appropriate MXNet community members can help resolve it.
Here are my recommended labels: Bug

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants