EagerSession.DevicePlacementPolicy
Mengontrol cara bertindak saat kami mencoba menjalankan operasi pada perangkat tertentu tetapi beberapa tensor input tidak ada di perangkat tersebut.
Metode Warisan
Dari kelas java.lang.Enum int akhir | |
int | compareTo (Object arg0) |
boolean terakhir | sama dengan (Object arg0) |
Kelas terakhir <E> | getDeclaringClass () |
int akhir | hashCode () |
String terakhir | nama () |
int akhir | ordinal () |
Tali | toString () |
statis <T meluas Enum <T>> T | valueOf (Kelas <T> arg0, String arg1) |
Dari kelas java.lang.Object boolean | sama dengan (Object arg0) |
Kelas terakhir <?> | getClass () |
int | hashCode () |
kekosongan terakhir | notify () |
kekosongan terakhir | notifyAll () |
Tali | toString () |
kekosongan terakhir | tunggu (long arg0, int arg1) |
kekosongan terakhir | tunggu (arg0 panjang) |
kekosongan terakhir | tunggu () |
Dari antarmuka java.lang.Comparable Nilai Enum
EagerSession.DevicePlacementPolicy EXPLICIT public static akhir
Menjalankan operasi dengan tensor input pada perangkat yang salah akan gagal.
EagerSession.DevicePlacementPolicy public static akhir SILENT
Salin tensor secara diam-diam, yang memiliki biaya performa karena operasi akan diblokir hingga penyalinan selesai. Ini adalah kebijakan penempatan default.
public static final EagerSession.DevicePlacementPolicy SILENT_FOR_INT32
Kebijakan penempatan yang secara diam-diam menyalin int32 tensor tetapi bukan tipe lain.
public static akhir EagerSession.DevicePlacementPolicy WARN
Salin tensor ke perangkat kanan tetapi catat peringatan.
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 2020-08-20 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Informasi yang saya butuhkan tidak ada"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Terlalu rumit/langkahnya terlalu banyak"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Sudah usang"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"Masalah terjemahan"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Masalah kode / contoh"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Lainnya"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Mudah dipahami"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Memecahkan masalah saya"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Lainnya"
}]