CompatibilityList

공개 클래스 호환성 목록

GPU 위임 호환성목록 데이터입니다.

GPU 대리자는 사용 가능한 OpenGL 버전, 드라이버 기능 및 장치 리소스의 차이로 인해 모든 Android 장치에서 지원되지 않습니다. 이 클래스는 GPU 대리자가 현재 장치에 적합한지 여부에 대한 정보를 제공합니다.

이 API는 실험적이며 변경될 수 있습니다.

경고: 호환성 목록은 제한된 모델 세트에서 수행된 테스트를 통해 구성됩니다. 자신의 모델이 작동하는지 검증할 계획을 세워야 합니다.

사용 예:

Interpreter.Options options = new Interpreter.Options();
 try (CompatibilityList compatibilityList = new CompatibilityList()) {
   if (compatibilityList.isDelegateSupportedOnThisDevice()) {
     GpuDelegate.Options delegateOptions = compatibilityList.getBestOptionsForThisDevice();
     gpuDelegate = new GpuDelegate(delegateOptions):
     options.addDelegate(gpuDelegate);
   }
 }
 Interpreter interpreter = new Interpreter(modelBuffer, options);
 

공공 생성자

공개 방법

무효의
닫다 ()
C 런타임에서 TFLite 리소스를 해제합니다.
GpuDelegate.옵션
getBestOptionsForThisDevice ()
GPU 대리자에 사용해야 하는 옵션은 무엇입니까?
부울
isDelegateSupportedOnThisDevice ()
이 장치에서 GPU 대리자가 지원되는지 여부입니다.

상속된 메서드

공공 생성자

공개 호환성 목록 ()

공개 방법

공공 무효 닫기 ()

C 런타임에서 TFLite 리소스를 해제합니다.

사용자는 이 메서드를 명시적으로 호출해야 합니다.

공개 GpuDelegate.Options getBestOptionsForThisDevice ()

GPU 대리자에 사용해야 하는 옵션은 무엇입니까?

공개 부울 isDelegateSupportedOnThisDevice ()

이 장치에서 GPU 대리자가 지원되는지 여부입니다.