Skip to content

[lite][arm]fix split op error#2750

Merged
chenjiaoAngel merged 52 commits into
PaddlePaddle:developfrom
chenjiaoAngel:new_im
Jan 13, 2020
Merged

[lite][arm]fix split op error#2750
chenjiaoAngel merged 52 commits into
PaddlePaddle:developfrom
chenjiaoAngel:new_im

Conversation

@chenjiaoAngel
Copy link
Copy Markdown
Collaborator

split op add lod_tensor check, if input tensor has led_tensor, output also set this

lite_with_X86 does not contain lite_with_cv
Merge branch 'image_dev' into image
Comment thread lite/kernels/arm/split_compute.cc Outdated
for (int i = in_dim.size() - 2; i >= 0; --i) {
in_strides[i] = in_strides[i + 1] * in_dim[i];
}
if (param.x->lod().size() > 0) {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

这里不用检查吧,直接设置就可以

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

确定每个tensor都有这个属性吗?如果都有,那是不是每个OP都的添加额?

Copy link
Copy Markdown
Collaborator

@MyPandaShaoxiang MyPandaShaoxiang left a comment

Choose a reason for hiding this comment

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

lgtm

@chenjiaoAngel chenjiaoAngel merged commit 9b357dd into PaddlePaddle:develop Jan 13, 2020
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