Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

paddle.equal doesn't support int8 and uint8 dtype #60904

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

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)

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

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.

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