mindspore.runtime.set_kernel_launch_capture
- mindspore.runtime.set_kernel_launch_capture(enable_capture_graph, op_capture_skip=None)[source]
In O0/O1 mode, the incremental inference scenario supports graph capture. By capturing the CPU-side operator dispatch behavior into a graph, the performance of CPU-side operator dispatch is improved.
Warning
This is an experimental API that is subject to change or deletion.
- Parameters
Examples
>>> import mindspore as ms >>> op_capture_skip = ['matmul', 'addn'] >>> ms.runtime.set_kernel_launch_capture(True, op_capture_skip)