Support reshaping with static shapes and dimensions conversion in tensor broadcasting

This commit is contained in:
Eugene Zhulenev
2018-09-14 15:25:27 -07:00
parent 9b864cdb37
commit 1b8d70a22b
4 changed files with 35 additions and 2 deletions

View File

@@ -115,7 +115,7 @@ static void test_static_broadcasting()
Tensor<float, 3, DataLayout> tensor(8,3,5);
tensor.setRandom();
#if EIGEN_HAS_CONSTEXPR
#if defined(EIGEN_HAS_INDEX_LIST)
Eigen::IndexList<Eigen::type2index<2>, Eigen::type2index<3>, Eigen::type2index<4>> broadcasts;
#else
Eigen::array<int, 3> broadcasts;