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

Overflow in tf.raw_ops.DenseBincount when the value of size is too large. #65634

Open
xl1043237213 opened this issue Apr 13, 2024 · 1 comment
Assignees
Labels
comp:ops OPs related issues stat:awaiting tensorflower Status - Awaiting response from tensorflower TF 2.16 type:bug Bug

Comments

@xl1043237213
Copy link

xl1043237213 commented Apr 13, 2024

Issue type

Bug

Have you reproduced the bug with TensorFlow Nightly?

Yes

Source

binary

TensorFlow version

tf 2.15

Custom code

No

OS platform and distribution

Linux Ubuntu 20.04

Mobile device

No response

Python version

3.10

Bazel version

No response

GCC/compiler version

No response

CUDA/cuDNN version

No response

GPU model and memory

No response

Current behavior?

When the value of size is close to the maximum value for the dtype, an integer overflow error will occur in following multiplication calculations.

Standalone code to reproduce the issue

https://colab.research.google.com/drive/1HOwF3BTWBrP2y9hpnFD9STu86vG7PrFX?usp=sharing

Relevant log output

Non-OK-status: InitDims(dim_sizes) status: INVALID_ARGUMENT: Encountered overflow when multiplying 3 with 6522107765268123892, result: -1
Aborted (core dumped)
@SuryanarayanaY
Copy link
Collaborator

SuryanarayanaY commented Apr 15, 2024

Hi @xl1043237213 ,

Thanks for reporting. I have reproduced the reported behaviour and attached screenshot below.

Screenshot 2024-04-15 at 1 52 35 PM

@SuryanarayanaY SuryanarayanaY added comp:ops OPs related issues TF 2.16 labels Apr 15, 2024
@SuryanarayanaY SuryanarayanaY added the stat:awaiting tensorflower Status - Awaiting response from tensorflower label Apr 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp:ops OPs related issues stat:awaiting tensorflower Status - Awaiting response from tensorflower TF 2.16 type:bug Bug
Projects
None yet
Development

No branches or pull requests

2 participants