LabelUtil
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
繼承的方法
來自類別 java.lang.Object
布林值
|
|
最終
課程<?>
|
getClass()
|
int
|
hashCode()
|
最終
void
|
notify()
|
最終
void
|
notifyAll()
|
字串 |
toString()
|
最終
void
|
wait(long arg0, int arg1)
|
最終
void
|
wait(long arg0)
|
最終
void
|
wait()
|
公用方法
將 int 值張量對應至字串標籤清單。這會將字串陣列做為字典。範例:如果指定的張量為 [3, 1, 0],而特定標籤為 ["background"、
"apple"、"banana"、"cherry"、"date"],則結果將會是 ["date", "banana", "apple"]。
參數
tensorBuffer |
含索引值的張量。這個值應為非負整數,每個值 x 都會轉換為 labels[x + offset] 。如果張量是以浮點 TensorBuffer 的形式提供,值將轉換為整數。超出範圍的所有值都會對應至空字串。 |
標籤 |
字串清單,做為字典查詢。陣列元素的索引將做為索引鍵。如要提高效能,請使用實作 RandomAccess 的物件,例如 ArrayList 。 |
碳補償 |
在 labels 中查詢 int 值時的偏移值。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-05-14 (世界標準時間)。
[{
"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":"其他"
}]