Skip to content

Comments

Fix RuntimeError when use_attention is set to False#182

Merged
pskrunner14 merged 1 commit intoIBM:developfrom
amjltc295:fix_no_attention
Nov 29, 2018
Merged

Fix RuntimeError when use_attention is set to False#182
pskrunner14 merged 1 commit intoIBM:developfrom
amjltc295:fix_no_attention

Conversation

@amjltc295
Copy link

Why

When use_attention is set to False, we will get RuntimeError. See #181

How

Add the missing contiguous() when attention is set to False

I'm not sure if it is the correct solution, but it should have the same effect as #112m .

@amjltc295 amjltc295 closed this Nov 29, 2018
@amjltc295 amjltc295 reopened this Nov 29, 2018
Copy link

@pskrunner14 pskrunner14 left a comment

Choose a reason for hiding this comment

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

Looks good. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants