public static enum OptimizerOptions.Level extends Enum<OptimizerOptions.Level> implements org.nd4j.shade.protobuf.ProtocolMessageEnum
Optimization levelProtobuf enum
tensorflow.OptimizerOptions.Level
Enum Constant and Description |
---|
L0
No optimizations
|
L1
L1 is the default level.
|
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
L0_VALUE
No optimizations
|
static int |
L1_VALUE
L1 is the default level.
|
Modifier and Type | Method and Description |
---|---|
static OptimizerOptions.Level |
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<OptimizerOptions.Level> |
internalGetValueMap() |
static OptimizerOptions.Level |
valueOf(org.nd4j.shade.protobuf.Descriptors.EnumValueDescriptor desc) |
static OptimizerOptions.Level |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static OptimizerOptions.Level |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OptimizerOptions.Level[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OptimizerOptions.Level L1
L1 is the default level. Optimization performed at L1 : 1. Common subexpression elimination 2. Constant folding
L1 = 0;
public static final OptimizerOptions.Level L0
No optimizations
L0 = -1;
public static final OptimizerOptions.Level UNRECOGNIZED
public static final int L1_VALUE
L1 is the default level. Optimization performed at L1 : 1. Common subexpression elimination 2. Constant folding
L1 = 0;
public static final int L0_VALUE
No optimizations
L0 = -1;
public static OptimizerOptions.Level[] values()
for (OptimizerOptions.Level c : OptimizerOptions.Level.values()) System.out.println(c);
public static OptimizerOptions.Level 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 OptimizerOptions.Level valueOf(int value)
forNumber(int)
instead.public static OptimizerOptions.Level forNumber(int value)
public static org.nd4j.shade.protobuf.Internal.EnumLiteMap<OptimizerOptions.Level> 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 OptimizerOptions.Level valueOf(org.nd4j.shade.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2020. All rights reserved.