Commit 390e57a7 authored by Yan (Asta) Li's avatar Yan (Asta) Li Committed by Benoit Steiner
Browse files

Check EIGEN_MAX_ALIGN_BYTES to prevent mod-by-0 (#10380)

* Check EIGEN_MAX_ALIGN_BYTES to prevent mod-by-0

If EIGEN_MAX_ALIGN_BYTES is set to 0, alignment checks that mod by EIGEN_MAX_ALIGN_BYTES fail at runtime.

* Returns true, as in tensorflow/core/framework/tensor.h
* Update unit tests

* Enable tests only if EIGEN_MAX_ALIGN_BYTES > 0
parent 91cb809b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment