public static enum RewriterConfig.MemOptType extends Enum<RewriterConfig.MemOptType> implements org.nd4j.shade.protobuf.ProtocolMessageEnum
tensorflow.RewriterConfig.MemOptType
Enum Constant and Description |
---|
DEFAULT_MEM_OPT
The default setting (SCHEDULING and SWAPPING HEURISTICS only)
|
HEURISTICS
Use any combination of swapping and recomputation heuristics.
|
MANUAL
Driven by manual op-level annotations.
|
NO_MEM_OPT
Disabled in the meta-optimizer.
|
RECOMPUTATION_HEURISTICS
Recomputation heuristics will recompute ops (such as Relu activation)
during backprop instead of storing them, reducing peak memory usage.
|
SCHEDULING_HEURISTICS
Scheduling will split big ops such as AddN and try to enforce a schedule
of the new computations that decreases peak memory usage.
|
SWAPPING_HEURISTICS
Swapping heuristic will move a tensor from the GPU to the CPU and move
it back when needed to reduce peak memory usage.
|
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_MEM_OPT_VALUE
The default setting (SCHEDULING and SWAPPING HEURISTICS only)
|
static int |
HEURISTICS_VALUE
Use any combination of swapping and recomputation heuristics.
|
static int |
MANUAL_VALUE
Driven by manual op-level annotations.
|
static int |
NO_MEM_OPT_VALUE
Disabled in the meta-optimizer.
|
static int |
RECOMPUTATION_HEURISTICS_VALUE
Recomputation heuristics will recompute ops (such as Relu activation)
during backprop instead of storing them, reducing peak memory usage.
|
static int |
SCHEDULING_HEURISTICS_VALUE
Scheduling will split big ops such as AddN and try to enforce a schedule
of the new computations that decreases peak memory usage.
|
static int |
SWAPPING_HEURISTICS_VALUE
Swapping heuristic will move a tensor from the GPU to the CPU and move
it back when needed to reduce peak memory usage.
|
Modifier and Type | Method and Description |
---|---|
static RewriterConfig.MemOptType |
forNumber(int value) |
static org.nd4j.shade.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
org.nd4j.shade.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
org.nd4j.shade.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static org.nd4j.shade.protobuf.Internal.EnumLiteMap<RewriterConfig.MemOptType> |
internalGetValueMap() |
static RewriterConfig.MemOptType |
valueOf(org.nd4j.shade.protobuf.Descriptors.EnumValueDescriptor desc) |
static RewriterConfig.MemOptType |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static RewriterConfig.MemOptType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RewriterConfig.MemOptType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RewriterConfig.MemOptType DEFAULT_MEM_OPT
The default setting (SCHEDULING and SWAPPING HEURISTICS only)
DEFAULT_MEM_OPT = 0;
public static final RewriterConfig.MemOptType NO_MEM_OPT
Disabled in the meta-optimizer.
NO_MEM_OPT = 1;
public static final RewriterConfig.MemOptType MANUAL
Driven by manual op-level annotations.
MANUAL = 2;
public static final RewriterConfig.MemOptType SWAPPING_HEURISTICS
Swapping heuristic will move a tensor from the GPU to the CPU and move it back when needed to reduce peak memory usage.
SWAPPING_HEURISTICS = 4;
public static final RewriterConfig.MemOptType RECOMPUTATION_HEURISTICS
Recomputation heuristics will recompute ops (such as Relu activation) during backprop instead of storing them, reducing peak memory usage.
RECOMPUTATION_HEURISTICS = 5;
public static final RewriterConfig.MemOptType SCHEDULING_HEURISTICS
Scheduling will split big ops such as AddN and try to enforce a schedule of the new computations that decreases peak memory usage.
SCHEDULING_HEURISTICS = 6;
public static final RewriterConfig.MemOptType HEURISTICS
Use any combination of swapping and recomputation heuristics.
HEURISTICS = 3;
public static final RewriterConfig.MemOptType UNRECOGNIZED
public static final int DEFAULT_MEM_OPT_VALUE
The default setting (SCHEDULING and SWAPPING HEURISTICS only)
DEFAULT_MEM_OPT = 0;
public static final int NO_MEM_OPT_VALUE
Disabled in the meta-optimizer.
NO_MEM_OPT = 1;
public static final int MANUAL_VALUE
Driven by manual op-level annotations.
MANUAL = 2;
public static final int SWAPPING_HEURISTICS_VALUE
Swapping heuristic will move a tensor from the GPU to the CPU and move it back when needed to reduce peak memory usage.
SWAPPING_HEURISTICS = 4;
public static final int RECOMPUTATION_HEURISTICS_VALUE
Recomputation heuristics will recompute ops (such as Relu activation) during backprop instead of storing them, reducing peak memory usage.
RECOMPUTATION_HEURISTICS = 5;
public static final int SCHEDULING_HEURISTICS_VALUE
Scheduling will split big ops such as AddN and try to enforce a schedule of the new computations that decreases peak memory usage.
SCHEDULING_HEURISTICS = 6;
public static final int HEURISTICS_VALUE
Use any combination of swapping and recomputation heuristics.
HEURISTICS = 3;
public static RewriterConfig.MemOptType[] values()
for (RewriterConfig.MemOptType c : RewriterConfig.MemOptType.values()) System.out.println(c);
public static RewriterConfig.MemOptType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic final int getNumber()
getNumber
in interface org.nd4j.shade.protobuf.Internal.EnumLite
getNumber
in interface org.nd4j.shade.protobuf.ProtocolMessageEnum
@Deprecated public static RewriterConfig.MemOptType valueOf(int value)
forNumber(int)
instead.public static RewriterConfig.MemOptType forNumber(int value)
public static org.nd4j.shade.protobuf.Internal.EnumLiteMap<RewriterConfig.MemOptType> internalGetValueMap()
public final org.nd4j.shade.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface org.nd4j.shade.protobuf.ProtocolMessageEnum
public final org.nd4j.shade.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface org.nd4j.shade.protobuf.ProtocolMessageEnum
public static final org.nd4j.shade.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static RewriterConfig.MemOptType valueOf(org.nd4j.shade.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2019. All rights reserved.