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

Prevent integer overflow in OpLevelCostEstimator::CalculateTensorSize. #53999

Merged
merged 1 commit into from Jan 26, 2022
Merged

Prevent integer overflow in OpLevelCostEstimator::CalculateTensorSize. #53999

merged 1 commit into from Jan 26, 2022

Conversation

pranve
Copy link

@pranve pranve commented Jan 25, 2022

In order to not change the API, we return a negative value in case of overflow. A better fix is to change the API to return a status instead.

PiperOrigin-RevId: 408713061
Change-Id: I3771475b0c72a2844a3854086966562fd33f2da5

In order to not change the API, we return a negative value in case of overflow. A better fix is to change the API to return a status instead.

PiperOrigin-RevId: 408713061
Change-Id: I3771475b0c72a2844a3854086966562fd33f2da5
@mihaimaruseac mihaimaruseac merged commit 1c579af into tensorflow:r2.6 Jan 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants