This commit is contained in:
Chao Liu
2018-11-16 01:45:24 -06:00
parent 08f16bd4dd
commit 5096a157da
2 changed files with 160 additions and 1 deletions

View File

@@ -27,7 +27,7 @@ struct GeneratorTensor
{
#if 1
return T(std::rand()) / T(RAND_MAX);
#elif 0
#elif
std::initializer_list<std::size_t> ls = {static_cast<std::size_t>(is)...};
return std::accumulate(ls.begin(), ls.end(), std::size_t(0));