mindspore.dataset.config.set_video_backend
- mindspore.dataset.config.set_video_backend(backend)
Set the backend used to decode videos.
- Parameters
backend (str) – Type of the video backend. It can be "CPU" or "Ascend".
- Raises
TypeError – If backend is not of type str.
ValueError – If backend is not "CPU" or "Ascend".
Examples
>>> import mindspore.dataset as ds >>> ds.config.set_video_backend("CPU")