| 2813 | } |
| 2814 | |
| 2815 | void SetStream(py::object cuda_stream) { |
| 2816 | set_output_order(AccessOrderFromPythonStreamObj(cuda_stream)); |
| 2817 | py_stream_ = cuda_stream; // keep the stream python object alive |
| 2818 | } |
| 2819 | |
| 2820 | private: |
| 2821 | std::shared_ptr<ThreadPool> shared_thread_pool_; |