Move Device::Sync() from the execution of SINK node to ExecutorState::Finish().
Before this CL, Device::Sync() was called only when the executor graph contains a SINK node. However the SINK node in the graph is guaranteed to be reachable from SOURCE. This CL makes sure Device::Sync() is always called before the executor exits. As a separate issue, we may consider if we want the executor graph to be "well-formed" with a single SOURCE and a single SINK. Change: 136652586
Showing
想要评论请 注册 或 登录