| 106 | } |
| 107 | |
| 108 | StatusOr<StreamPool::Ptr> Backend::BorrowStream(int device_ordinal) { |
| 109 | TF_ASSIGN_OR_RETURN(auto executor, stream_executor(device_ordinal)); |
| 110 | return BorrowStream(executor); |
| 111 | } |
| 112 | |
| 113 | StatusOr<StreamPool::Ptr> Backend::BorrowStream(se::StreamExecutor* executor) { |
| 114 | tensorflow::mutex_lock l(mu_); |