Tensorflow是一个跨平台库。C API之上兼容很多不同的编程语言。
- Client:
- Defines the computation as a dataflow graph.
- Initiates graph execution using a session.
- Distributed Master
- Prunes a specific subgraph from the graph, as defined by the arguments to Session.run().
- Partitions the subgraph into multiple pieces that run in different processes and devices.
- Distributes the graph pieces to worker services.
- Initiates graph piece execution by worker services.
- Worker Services (one for each task)
- Schedule the execution of graph operations using kernel implementations appropriate to the available hardware (CPUs, GPUs, etc).
- Send and receive operation results to and from other worker services.
- Kernel Implementations
- Perform the computation for individual graph operations.
各个模块
-