简体   繁体   English

张量流源代码中的c ++客户端会话和c_api TF_Session与core / public / session之间有什么关系?

[英]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的源代码,但是我很困惑地发现关于会话有很多内容,

  1. tensorflow/c/c_api_internal.cc defined TF_Session tensorflow / c / c_api_internal.cc定义了TF_Session
  2. tensorflow/c/c_api_test.cc defined a class CSession tensorflow / c / c_api_test.cc定义了一个CSession类
  3. tensorflow/cc/client/client_session.cc tensorflow /立方厘米/客户端/ client_session.cc
  4. tensorflow/core/public/session.h tensorflow /核心/公共/ session.h

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. ccc文件夹中的文件用于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.ccdirect_session.h

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 TensorFlow C ++ API中ClientSession和Session之间的区别 - Difference between ClientSession and Session in TensorFlow C++ API TensorFlow c ++ API在session-> run()崩溃 - TensorFlow c++ API crashes on session->run() 为TensorFlow C ++ API的会话选择特定的GPU - Select specific gpu for the session of tensorflow c++ api Tensorflow C ++ API:`Session :: Run`中的`fetch_outputs`和`run_outputs`之间的区别 - Tensorflow C++ API: Difference between `fetch_outputs` and `run_outputs` in `Session::Run` 张量流c ++代码SessionFactory :: GetFactory如何选择要使用的会话?直接还是Grpc会话? - how does the tensorflow c++ code SessionFactory::GetFactory choose which session to use?Direct or Grpc Session? TF_SessionRun of TensorFlow C API cannot run a session created in another member function - TF_SessionRun of TensorFlow C API cannot run a session created in another member function 如何使用Session :: Run(TensorFlow C ++ API)以批处理模式对样品进行基于CNN的分类 - How to use Session::Run (TensorFlow C++ API) to perform CNN based classification of samples in batch mode C ++会话管理方法 - C++ Session management methods 如何在Linux中使用Makefile编译Tensorflow c_api - How to compile tensorflow c_api using Makefile in linux QuickFix C++ - 如何从客户端 APP 建立交易 session? - QuickFix C++ - How to established Trading session from client APP?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM