张量流中Eigen的C ++使用 [英] C++ use of Eigen in tensorflow
问题描述
张量流与本征之间的关系是什么,特别是关于 tensor
数据结构?
What is the relation between tensorflow and Eigen, particularly regarding the tensor
datastructures?
There are some older quotations (e.g. here) which state that tensorflow is using Eigen extensively (afaik a tensorflow guy has extended the Eigen code). More recent tensorflow documentation, however, seems to not explicitly refer to Eigen.
两个 tensor
结构是否相同?它们是否正在同时更新?使用 Eigen :: tensor
而不是 tensorflow :: tensor
是否有(可能将来)不利?
Are the two tensor
structures identical? Are they being updated concurrently? Is there any (possibly future) disadvantage in using the Eigen::tensor
over the tensorflow::tensor
?
推荐答案
tensorflow :: tensor
只是围绕 Eigen :: Tensor
的一个薄包装,其高级级别有限仅功能.您可以使用 tensor()
方法访问 tensorflow :: tensor
的基础 Eigen :: Tensor
.我想这些信息也可以解决您的最后两个问题.
tensorflow::tensor
is just a thin wrapper around Eigen::Tensor
with limited high-level features only. You can access to the underlying Eigen::Tensor
of a tensorflow::tensor
using the tensor()
method. I guess that this information also solve your last two questions.
这篇关于张量流中Eigen的C ++使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!