提交 f0a2da1d 编写于 作者: J jiweibo

update doc. test=develop

上级 50993464
...@@ -278,7 +278,7 @@ predictor = create_paddle_predictor(config) ...@@ -278,7 +278,7 @@ predictor = create_paddle_predictor(config)
### `set_cuda_stream(exec, io)` ### `set_cuda_stream(exec, io)`
指定模型运行的exec流和io流,默认值均为nullptr,此时使用内部创建的流。多线程情况下不应该设置该值,此时则每个线程均使用自己的流。注意:该选项不与`set_cuda_use_multi_stream(true)`混用,否则config检查会报错 指定模型运行的exec流和io流,默认值均为nullptr,此时使用内部创建的流。多线程情况下不应该设置该值,此时则每个线程均使用自己的流。仅在cuda下有效。注意:该选项不与`set_cuda_use_multi_stream(true)`混用,否则config检查会报错。
参数: 参数:
...@@ -291,25 +291,25 @@ predictor = create_paddle_predictor(config) ...@@ -291,25 +291,25 @@ predictor = create_paddle_predictor(config)
### `cuda_exec_stream()` ### `cuda_exec_stream()`
返回用户设置的exec流指针,如用户未设置,则返回nullptr 返回用户设置的exec流指针,如用户未设置,则返回nullptr。仅在cuda下有效。
参数: 参数:
- `None` - `None`
返回:用户设置的exec流指针用户未设置,则返回nullptr 返回:用户设置的exec流指针用户未设置,则返回nullptr
返回类型:`cudaStream_t*` 返回类型:`cudaStream_t*`
### `cuda_io_stream()` ### `cuda_io_stream()`
返回用户设置的io流指针,如用户未设置,则返回nullptr 返回用户设置的io流指针,如用户未设置,则返回nullptr。仅在cuda下有效。
参数: 参数:
- `None` - `None`
返回:用户设置的io流指针用户未设置,则返回nullptr 返回:用户设置的io流指针用户未设置,则返回nullptr
返回类型:`cudaStream_t*` 返回类型:`cudaStream_t*`
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册