| 464 | } |
| 465 | |
| 466 | std::unique_ptr<SubProcess> CreateSubProcess(const std::vector<string>& argv) { |
| 467 | std::unique_ptr<SubProcess> proc(new SubProcess()); |
| 468 | proc->SetProgram(argv[0], argv); |
| 469 | proc->SetChannelAction(CHAN_STDERR, ACTION_DUPPARENT); |
| 470 | proc->SetChannelAction(CHAN_STDOUT, ACTION_DUPPARENT); |
| 471 | return proc; |
| 472 | } |
| 473 | |
| 474 | } // namespace tensorflow |