Tensor.QuantizationParams
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
量子化パラメータテーブルに相当し、そのQuantizationParameters
で、 TFLiteモデルスキーマファイル。
チャネルごとの量子化は、入力と出力のテンソルには適用されないので、 scale
とzero_point
両方の単一の値の代わりに配列されています。
量子化されていないテンソルの場合、scaleとzero_pointの値は両方とも0です。
量子化された値qが与えられた場合、対応する浮動小数点値fは次のようになります。
f =スケール*(q-zero_point)
継承されたメソッド
クラスjava.lang.Objectからブール値 | |
最終クラス<?> | getClass() |
int | hashCode() |
最終的な無効 | 通知() |
最終的な無効 | notifyAll() |
弦 | toString() |
最終的な無効 | 待ち時間(長いarg0は、int型の引数1) |
最終的な無効 | 待ち時間(長いarg0に) |
最終的な無効 | 待ち時間() |
パブリックコンストラクタ
公共QuantizationParams(フロート規模、int型zeroPoint)
パラメーター
規模 | 量子化で使用されるスケール値。 |
---|
zeroPoint | 量子化で使用されるゼロ点の値。 |
---|
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 2021-09-24 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":"その他"
}]