Warning: This API is deprecated and will be removed in a future
version of TensorFlow after
the replacement is stable.
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
|
compareTo(E arg0)
|
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.
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 2024-01-22 UTC.
[null,null,["Last updated 2024-01-22 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(E 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."]]