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.
1 file changed