Skip to content

fix matmul shape check#16347

Merged
phlrain merged 1 commit intoPaddlePaddle:developfrom
phlrain:fix_matmul_check
Mar 21, 2019
Merged

fix matmul shape check#16347
phlrain merged 1 commit intoPaddlePaddle:developfrom
phlrain:fix_matmul_check

Conversation

@phlrain
Copy link
Collaborator

@phlrain phlrain commented Mar 21, 2019

No description provided.

@phlrain phlrain requested a review from chengduoZH March 21, 2019 11:58
@phlrain
Copy link
Collaborator Author

phlrain commented Mar 21, 2019

nn.py 修改的原因是 matmul 之前调用了expand,沿着batch size 那个轴,shape会从 -1,变成-10,导致matmul检查无法通过,我尝试过修改expand的行为,发现embedding的bp无法通过

matmul_op.cc 的修改是区分compile time 和run time,不检查compile time时候的shape

这些问题我都会在后续shape问题的梳理中,统一梳理和修复

@phlrain phlrain merged commit 8c81d99 into PaddlePaddle:develop Mar 21, 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 #16347 from phlrain/fix_matmul_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