| commit | 94e2213b3823ec1141077a7a7cc4f0b0af11876b | [log] [tgz] |
|---|---|---|
| author | Rasmus Munk Larsen <rmlarsen@google.com> | Fri Sep 08 15:49:55 2017 -0700 |
| committer | Rasmus Munk Larsen <rmlarsen@google.com> | Fri Sep 08 15:49:55 2017 -0700 |
| tree | 246855911c9845989f9240ba1765332cebe423d6 | |
| parent | 6d42309f1394396c984212abad73469e6a50c3a3 [diff] |
Avoid undefined behavior in Eigen::TensorCostModel::numThreads. If the cost is large enough then the thread count can be larger than the maximum representable int, so just casting it to an int is undefined behavior. Contributed by phurst@google.com.
Eigen is a C++ template library for linear algebra: matrices, vectors, numerical solvers, and related algorithms.
For more information go to http://eigen.tuxfamily.org/.