This repository has been archived by the owner on Jan 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 114
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Thanks for your contribution! |
zrr1999
changed the title
fix bugs and add tests of gather/gather_nd ops
Add gather_nd tests
May 6, 2023
您好,麻烦看一下这个报错是怎么回事 我在本地是可以正常通过的,这里他调用paddle.gather_nd时显示
但是paddle应该是有gather_nd这个kernel的 |
在最新编译的wheel包中测试是没有问题的,但 |
好的,明白啦 |
thisjiang
approved these changes
May 12, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
jiahy0825
pushed a commit
to jiahy0825/CINN
that referenced
this pull request
May 25, 2023
* add gather_nd tests * fix bug * fix bug
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
测试部分
From #1378
为gather_nd算子增加新的测试用例
算子类型
Test Cases Checklist
张量维度
special shape
4D 张量 测试如下情况
其中一个维度为 1
其中一个维度小于 1024
其中一个维度大于 1024
向量的所有维度都是 1
张量数据类型
"float32", "float64", "int16", "int32", "int64", "uint8"
index shape
index_shape: [8, j]
j 取尽 1 到 len(x_shape)-1 的所有值