我从C++中tensorflow会话的输出向量中获得了一些Eigen::TensorMap。我想对Eigen::TensorMap做一些操作(重塑和连接等)。我试着用纯Eigen3代码重现它。#include <unsupported/Eigen/CXX11/Tensor>using Eigen::TensorMap;
using Eigen
我正在使用Eigen库进行矩阵/张量计算,其中我希望返回沿深度轴的最大值的索引。类似于numpy.argmax()在Python中所做的事情。张量维数如下:(行= 200,列= 200,depth=4) #include <Eigen/Dense> Eigen::Tensor<double, 3> table(4,200,200); // How can I do