Skip to content

Fix topk shape check#16351

Merged
phlrain merged 2 commits intoPaddlePaddle:developfrom
phlrain:fix_topk_shape_check
Mar 22, 2019
Merged

Fix topk shape check#16351
phlrain merged 2 commits intoPaddlePaddle:developfrom
phlrain:fix_topk_shape_check

Conversation

@phlrain
Copy link
Collaborator

@phlrain phlrain commented Mar 21, 2019

No description provided.

@phlrain phlrain requested review from chengduoZH and kuke March 21, 2019 12:28
@phlrain
Copy link
Collaborator Author

phlrain commented Mar 22, 2019

在seq2seq的任务中,需要对decoder的结果做reshape操作, reshape( tensor, shape=[-1]), 新的tensor的 shape 推导出来为-1, topk的 compile time 检查无法通过

@phlrain phlrain merged commit 18a0f6d into PaddlePaddle:develop Mar 22, 2019
phlrain added a commit to phlrain/Paddle that referenced this pull request Mar 22, 2019
phlrain added a commit that referenced this pull request Mar 23, 2019
Merge pull request #16351 from phlrain/fix_topk_shape_check
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