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! |
Closed
描述增加的单测
算子类型
OpMapper
Test Cases Checklist张量维度
special shape挑选 2D/3D/4D 张量中的一个,测试下面的特殊情况。
张量数据类型
广播
算子属性算子属性的测试用例。
|
算子数据类型这一条需要细化。比如:
|
thisjiang
previously approved these changes
May 10, 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
zzk0
reviewed
May 10, 2023
This was referenced May 10, 2023
Enable users to choose target to run instead of relying on complile options
thisjiang
reviewed
May 15, 2023
thisjiang
approved these changes
May 16, 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
* Register bitwise_and_int64 extern call * Bitwise_and support type bool, uint8, int8 and int16 * ir operator& support more dtype on nvgpu * Bitwise op support dtypes are aligned with paddle * Add bitwise op tests * Fix float16 error * Add broadcast test cases for bitwise * Reformat code * Fix ci error on x86 * Add global variable CurrentTarget Enable users to choose target to run instead of relying on complile options * Use CurrentTarget instead of DefaultTarget * Add compile with cuda check in set_current_target * Add test case for inf and nan values * Unify IsCompiledWithCUDA and IsCompiledWithCUDNN
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.
bitwise
系列算子支持类型与paddle对齐bitwise
系列算子单测GetExternFuncName
,增加可选参数,现有cinn的gpu函数原型注册中,存在以下两种命名方式:cinn_cuda_op_type
和cinn_nvgpu_op_type
,由于nvgpu
占大多数,因此默认使用nvgpu
作为target名称bitwise
的cpu算子就只支持int32
类型)cinn_target_op_type
,解释如下:cinn_
:CINN下的函数原型target_
:支持的平台,CPU为host
,GPU为nvgpu
op_
:算子名称type
:算子数据类型(bool、uint8、int32、fp64等)CurrentTarget
,能够通过该变量获取当前编译、生成代码的目标平台,用户也能够通过python接口设置target,而不再依赖于编译选项