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 division by 0 in OneHot implementation #49794

Merged
merged 1 commit into from
May 31, 2021

Commits on May 26, 2021

  1. Prevent division by 0 in OneHot implementation

    If input indices is degenerate, the implementation would do a divide by zero. See https://github.com/tensorflow/tensorflow/blob/745d57df6d5e9bc568666a2a48ed8dd629c27241/tensorflow/lite/kernels/one_hot.cc#L68-L72
    
    PiperOrigin-RevId: 370966870
    Change-Id: Ie018337811c8016b5a1d3a277d00d5f2e19a2058
    mihaimaruseac authored and geetachavan1 committed May 26, 2021
    Configuration menu
    Copy the full SHA
    8b45bc9 View commit details
    Browse the repository at this point in the history