Skip to content

Conversation

@samthakur587
Copy link

PR types

Bug fixes

PR changes

Docs

Description

The paddle.equal is not supported int8 and uint8 but in docs it's mention that it support these dtype and also it support bfloat16 that i have added also.

import paddle 
x = paddle.to_tensor([1, 2, 3], dtype='int8')
y = paddle.to_tensor([1, 3, 2], dtype='int8')
result1 = paddle.equal(x, y)
print(result1)

Output

return _C_ops.equal(x, y)
RuntimeError: (NotFound) The kernel with key (CPU, Undefined(AnyLayout), uint8) of kernel `equal` is not registered. Selected wrong DataType `uint8`. Paddle support following DataTypes: int64, int16, float64, float16, float32, int32, bfloat16, bool.
  [Hint: Expected kernel_iter == iter->second.end() && kernel_key.backend() == Backend::CPU != true, but received kernel_iter == iter->second.end() && kernel_key.backend() == Backend::CPU:1 == true:1.] (at /paddle/paddle/phi/core/kernel_factory.cc:199)

@paddle-bot
Copy link

paddle-bot bot commented Jan 17, 2024

你的PR提交成功,感谢你对开源项目的贡献!
请关注后续CI自动化测试结果,详情请参考Paddle-CI手册
Your PR has been submitted. Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

@CLAassistant
Copy link

CLAassistant commented Jan 17, 2024

CLA assistant check
All committers have signed the CLA.

@paddle-bot paddle-bot bot added the contributor External developers label Jan 17, 2024
@luotao1
Copy link
Contributor

luotao1 commented Jan 18, 2024

which version do you use? In the following PR, paddle.equal support int8 and uint8:

You can use release 2.6.0

@paddle-ci-bot
Copy link

paddle-ci-bot bot commented Jan 25, 2024

Sorry to inform you that 80416e0's CIs have passed for more than 7 days. To prevent PR conflicts, you need to re-run all CIs manually.

@samthakur587
Copy link
Author

which version do you use? In the following PR, paddle.equal support int8 and uint8:

You can use release 2.6.0

Thanks @luotao1 i am using older version. and i tested on bflot16 it is also supported by equal. and it not mention in docs.

@paddle-bot paddle-bot bot closed this Jan 28, 2025
@paddle-bot
Copy link

paddle-bot bot commented Feb 5, 2025

Since you haven't replied for more than a year, we have closed this issue/pr.
If the problem is not solved or there is a follow-up one, please reopen it at any time and we will continue to follow up.
由于您超过一年未回复,我们将关闭这个issue/pr。
若问题未解决或有后续问题,请随时重新打开,我们会继续跟进。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

contributor External developers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants