[XPU] fix registration of elementwise_add #60252
Merged
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.
PR types
Bug fixes
PR changes
OPs
Description
QA测试时候发现,
test_elementwise_add_op_xpu单测在KL3模拟器下跑不过。排查发现是类型注册有问题,本PR将若干处类型注册进行了对齐,改了之后本地跑单测是可以通过的了。已知问题:某些单测规模是
(-1, 1),因此对于类型是BF16、INT、INT64时,实际随机出来的数据都是0,并不能起到真实单测的作用。优先级较低,以后再改,本PR先解决跑挂的问题。