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
Showing
- tensorflow_federated/python/core/impl/executors/BUILD 1 addition, 0 deletionstensorflow_federated/python/core/impl/executors/BUILD
- tensorflow_federated/python/core/impl/executors/caching_executor.py 2 additions, 2 deletions..._federated/python/core/impl/executors/caching_executor.py
- tensorflow_federated/python/core/impl/executors/caching_executor_test.py 134 additions, 0 deletions...rated/python/core/impl/executors/caching_executor_test.py
Loading
Please register or sign in to comment