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
op unittest for sort & enhance test helper #1411
Merged
Merged
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! |
Closed
zzk0
commented
May 12, 2023
This comment was marked as outdated.
This comment was marked as outdated.
thisjiang
reviewed
May 15, 2023
thisjiang
reviewed
May 23, 2023
thisjiang
approved these changes
May 24, 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
* fix typo select unittest * op unittest for sort * op unittest for sort * enhance TestCaseHelper & add special case for sort op * fix sort bug for duplicate element * fix index typo * refine hard code testcase * reduce array size to avoid large cuda memory occupation * add not passed test case * reduce array size again * fix magic number * remove headers * remove cpp style code from .cuh
Open
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
这个 PR 给
sort
添加了单元测试,修复部分问题,一共有 36 个测试用例, CPU 运行时间 30s,GPU 运行时间 83s。此外,在 test helper 中添加了函数,提供run_test
接口运行 OpTest 子类。需要注意的是,sort op 存在三个问题:
目前的 PR 对正确性问题进行了临时修复,未对性能问题、内存问题做修复。
算子类型
Test Cases Checklist
张量维度
special shape
挑选 2D/3D/4D 张量中的一个,测试下面的特殊情况。
张量数据类型
###广播
算子属性