C++ use of Eigen in tensorflow

試著忘記壹切 提交于 2021-02-18 10:54:16

问题


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.

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?


回答1:


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.



来源:https://stackoverflow.com/questions/42443009/c-use-of-eigen-in-tensorflow

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!