Warning: This API is deprecated and will be removed in a future
version of TensorFlow after
the replacement is stable.
EagerSession.DevicePlacementPolicy
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
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.
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-01-22。
[null,null,["最后更新时间 (UTC):2024-01-22。"],[],[]]