[英]what's the relation between c++ client session and c_api TF_Session and core/public/session in tensorflow source code?
what's the relation between c++ client session and c_api TF_Session and core/public/session in tensorflow source code? 张量流源代码中的c ++客户端会话和c_api TF_Session与core / public / session之间有什么关系? I'm reading the source code of tensorflow,but I'm confused to found that there are many part about session, 我正在阅读tensorflow的源代码,但是我很困惑地发现关于会话有很多内容,
then what's exactly a 'session'?Where's the concrete 'run' function of session? 那么什么是“会话”呢?会话的具体“运行”功能在哪里?
The function calls for session.run()
are made in tensorflow/core/common_runtime/direct_session.cc
. session.run()
的函数调用在tensorflow/core/common_runtime/direct_session.cc
。
The files in the c
and the cc
folder are for the C++ API of tensorflow. c
和cc
文件夹中的文件用于tensorflow的C ++ API。 If you are starting to understand the code for session execution direct_session.cc
and direct_session.h
are the places to start out. 如果您开始了解会话执行的代码, direct_session.h
可以直接使用direct_session.cc
和direct_session.h
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.