EagerSession.DevicePlacementPolicy
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
שולט כיצד לפעול כאשר אנו מנסים להפעיל פעולה במכשיר נתון אך חלק מהטנסורים של קלט אינם נמצאים במכשיר זה.
שיטות בירושה
מכיתה java.lang.Enum int סופי | |
int | compareTo (Object arg0) |
בוליאנית סופית | שווה (Object arg0) |
מחלקה סופית<E> | getDeclaringClass () |
int סופי | hashcode () |
מחרוזת סופית | שם () |
int סופי | סידורי () |
חוּט | toString () |
סטטי <T מרחיב את Enum<T>> T | valueOf (Class<T> arg0, מחרוזת arg1) |
מכיתה java.lang.Object בוליאני | שווה (Object arg0) |
שיעור אחרון<?> | getClass () |
int | hashcode () |
ריק סופי | להודיע () |
ריק סופי | הודע הכל () |
חוּט | toString () |
ריק סופי | המתן (ארג0 ארוך, int arg1) |
ריק סופי | חכה (ארג0 ארוך) |
ריק סופי | חכה () |
מממשק java.lang.Comparable מופשט int | compareTo (E מרחיב את Enum<E> arg0) |
ערכים מנויים
ציבורי סטטי סופית EagerSession.DevicePlacementPolicy EXPLICIT
הפעלת פעולות עם טנסור קלט במכשיר הלא נכון תיכשל.
סופי סטטי ציבורי EagerSession.DevicePlacementPolicy SILENT
העתק בשקט את הטנזור, שיש לו עלות ביצועים מכיוון שהפעולה תיחסם עד להשלמת העותק. זוהי מדיניות המיקום המוגדרת כברירת מחדל.
ציבורי סטטי סופית EagerSession.DevicePlacementPolicy SILENT_FOR_INT32
מדיניות מיקום שמעתיקה בשקט טנסורים של int32 אך לא סוגים אחרים של dtypes.
סופי סטטי ציבורי EagerSession.DevicePlacementPolicy אזהרה
העתק את הטנזור למכשיר הנכון אך רשם אזהרה.
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים נוספים, אפשר לקרוא את מדיניות האתר של Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה. חלק מהתוכן הוא ברישיון NumPy.
עדכון אחרון: 2025-07-27 (שעון UTC).
[null,null,["עדכון אחרון: 2025-07-27 (שעון UTC)."],[],[],null,["# EagerSession.DevicePlacementPolicy\n\npublic static final enum **EagerSession.DevicePlacementPolicy** \nControls how to act when we try to run an operation on a given device but some input tensors\nare not on that device. \n\n### Inherited Methods\n\nFrom class java.lang.Enum \n\n|----------------------------------|---------------------------------------------------------------------------------------------------------------------------------------|\n| final int | compareTo([EagerSession.DevicePlacementPolicy](/versions/r2.13/api_docs/java/org/tensorflow/EagerSession.DevicePlacementPolicy) arg0) |\n| int | compareTo(Object arg0) |\n| final boolean | equals(Object arg0) |\n| final Class\\\u003cE\\\u003e | getDeclaringClass() |\n| final int | hashCode() |\n| final String | name() |\n| final int | ordinal() |\n| String | toString() |\n| static \\\u003cT extends Enum\\\u003cT\\\u003e\\\u003e T | valueOf(Class\\\u003cT\\\u003e arg0, String arg1) |\n\nFrom class java.lang.Object \n\n|------------------|---------------------------|\n| boolean | equals(Object arg0) |\n| final Class\\\u003c?\\\u003e | getClass() |\n| int | hashCode() |\n| final void | notify() |\n| final void | notifyAll() |\n| String | toString() |\n| final void | wait(long arg0, int arg1) |\n| final void | wait(long arg0) |\n| final void | wait() |\n\nFrom interface java.lang.Comparable \n\n|--------------|-------------------------------------|\n| abstract int | compareTo(E extends Enum\\\u003cE\\\u003e arg0) |\n\nEnum Values\n-----------\n\n#### public static final EagerSession.DevicePlacementPolicy\n**EXPLICIT**\n\nRunning operations with input tensors on the wrong device will fail. \n\n#### public static final EagerSession.DevicePlacementPolicy\n**SILENT**\n\nSilently copy the tensor, which has a performance cost since the operation will be blocked\ntill the copy completes. This is the default placement policy. \n\n#### public static final EagerSession.DevicePlacementPolicy\n**SILENT_FOR_INT32**\n\nPlacement policy which silently copies int32 tensors but not other dtypes. \n\n#### public static final EagerSession.DevicePlacementPolicy\n**WARN**\n\nCopy the tensor to the right device but log a warning."]]