InterpreterApi.Options.TfLiteRuntime
TensorFlowLiteランタイム実装を取得する場所を表す列挙型。
継承されたメソッド
クラスjava.lang.Enumから最終的なint | |
int | |
最終ブール値 | |
最終クラス<E> | getDeclaringClass () |
最終的なint | hashCode () |
最終的な文字列 | 名前() |
最終的なint | 序数() |
弦 | toString () |
static <T extends Enum <T >> T | |
クラスjava.lang.Objectからブール値 | |
最終クラス<?> | getClass () |
int | hashCode () |
最終的な無効 | 通知() |
最終的な無効 | notifyAll () |
弦 | toString () |
最終的な無効 | 待機(long arg0、int arg1) |
最終的な無効 | 待つ(長いarg0) |
最終的な無効 | 待つ() |
インターフェイスjava.lang.Comparableから 列挙値
public static final InterpreterApi.Options.TfLiteRuntime FROM_APPLICATION_ONLY
アプリケーションにリンクされているTFLiteランタイム実装を使用します。アプリケーションにリンクされた適切なTFLiteランタイム実装がない場合、このTfLiteRuntime設定でInterpreterApiインスタンスを作成しようとすると、IllegalStateException例外がスローされます(OSまたはシステムサービスがTF Liteランタイム実装を提供できる場合でも)。
これがデフォルト設定です。この設定は、TFLiteランタイム実装を提供しないシステムで実行する必要があるアプリにも適しています。
public static final InterpreterApi.Options.TfLiteRuntime FROM_SYSTEM_ONLY
OSまたはシステムサービスによって提供されるTFLiteランタイム実装を使用します。これは、システムライブラリ/共有オブジェクト/サービス(Google Playサービスなど)から取得されます。アプリケーションにリンクされているバージョン(存在する場合)よりも新しい場合があります。システムによって提供される適切なTFLiteランタイム実装がない場合、このTfLiteRuntime設定でInterpreterApiインスタンスを作成しようとすると、IllegalStateException例外がスローされます(アプリケーションにリンクされたTF Liteランタイム実装がある場合でも)。
この設定は、システムが提供するTF Liteランタイムを使用するコードに適しています。これにより、アプリのバイナリサイズを削減し、より頻繁に更新できます。
public static final InterpreterApi.Options.TfLiteRuntime PREFER_SYSTEM_OVER_APPLICATION
システムが提供するTFLiteランタイム実装がある場合はそれを使用します。そうでない場合は、アプリケーションにリンクされているTFLiteランタイム実装を使用します。適切なTFLiteランタイムがどの場所にも見つからない場合、このTFLiteRuntime設定を使用してInterpreterApiインスタンスを作成しようとすると、IllegalStateExceptionがスローされます。アプリケーションにリンクされた適切なTFLiteランタイムと、システムによって提供された適切なTF Liteランタイムの両方がある場合は、システムによって提供されたものが使用されます。
この設定は、TF Liteランタイムがどこから来ているかを気にしないコード(ミドルウェアレイヤーなど)での使用に適しています。
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2022-07-01 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"必要な情報がない"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"複雑すぎる / 手順が多すぎる"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"最新ではない"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻訳に関する問題"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"サンプル / コードに問題がある"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"その他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"わかりやすい"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"問題の解決に役立った"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"その他"
}]