File: _load_gpu_decoder.py

package info (click to toggle)
pytorch-vision 0.14.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 15,188 kB
  • sloc: python: 49,008; cpp: 10,019; sh: 610; java: 550; xml: 79; objc: 56; makefile: 32
file content (8 lines) | stat: -rw-r--r-- 174 bytes parent folder | download
1
2
3
4
5
6
7
8
from ..extension import _load_library


try:
    _load_library("Decoder")
    _HAS_GPU_VIDEO_DECODER = True
except (ImportError, OSError):
    _HAS_GPU_VIDEO_DECODER = False