Skip to content
Snippets Groups Projects
Commit 6ca78bc5 authored by Keith Rush's avatar Keith Rush Committed by tensorflow-copybara
Browse files

Uses bytes of ndarray instead of string rep of flatten.

Taking string rep of flattened ndarray can cause non-equal ndarrays to hash to identical values.

E.g., added test here failed previously--arrays that have identical values on the ends of their flattened reps, but differ in the middle, will result in the same key.

PiperOrigin-RevId: 321234171
parent ac22eed2
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment