CompatibilityList

공개 클래스 CompatibilityList

GPU 위임 CompatibilityListing 데이터

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

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

경고:compatibilityList는 제한된 모델 세트에서 실행된 테스트로 구성됩니다. 자체 모델이 작동하는지 검증하는 계획을 세워야 합니다.

사용 예:

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);
 

공개 생성자

CompatibilityList())를 이용할 수 없습니다.

공개 메서드

void
close()
C 런타임에서 TFLite 리소스를 해제합니다.
GpuDelegate.Options
getBestOptionsForThisDevice()입니다.
GPU 대리자에 사용해야 하는 옵션
boolean
isDelegateSupportedOnThisDevice()
이 기기에서 GPU 위임이 지원되는지 여부입니다.

상속된 메서드

공개 생성자

public CompatibilityList ()

공개 메서드

public void close ()

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

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

public GpuDelegate.Options getBestOptionsForThisDevice ()

GPU 대리자에 사용해야 하는 옵션

public 부울 isDelegateSupportedOnThisDevice ()

이 기기에서 GPU 위임이 지원되는지 여부입니다.