EagerSession.DevicePlacementPolicy
Stay organized with collections
Save and categorize content based on your preferences.
Controls how to act when we try to run an operation on a given device but some input tensors
are not on that device.
Inherited Methods
From class
java.lang.Enum
|
final
int
|
|
|
int
|
compareTo(Object arg0)
|
|
final
boolean
|
equals(Object arg0)
|
|
final
Class<E>
|
getDeclaringClass()
|
|
final
int
|
hashCode()
|
|
final
String
|
name()
|
|
final
int
|
ordinal()
|
|
String
|
toString()
|
|
static
<T extends Enum<T>>
T
|
valueOf(Class<T> arg0, String arg1)
|
From class
java.lang.Object
|
boolean
|
equals(Object arg0)
|
|
final
Class<?>
|
getClass()
|
|
int
|
hashCode()
|
|
final
void
|
notify()
|
|
final
void
|
notifyAll()
|
|
String
|
toString()
|
|
final
void
|
wait(long arg0, int arg1)
|
|
final
void
|
wait(long arg0)
|
|
final
void
|
wait()
|
From interface
java.lang.Comparable
|
abstract
int
|
compareTo(E extends Enum<E> arg0)
|
Enum Values
public
static
final
EagerSession.DevicePlacementPolicy
EXPLICIT
Running operations with input tensors on the wrong device will fail.
public
static
final
EagerSession.DevicePlacementPolicy
SILENT
Silently copy the tensor, which has a performance cost since the operation will be blocked
till the copy completes. This is the default placement policy.
public
static
final
EagerSession.DevicePlacementPolicy
SILENT_FOR_INT32
Placement policy which silently copies int32 tensors but not other dtypes.
public
static
final
EagerSession.DevicePlacementPolicy
WARN
Copy the tensor to the right device but log a warning.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2023-10-06 UTC."],[],[]]