public static enum SaverDef.CheckpointFormatVersion extends Enum<SaverDef.CheckpointFormatVersion> implements org.nd4j.shade.protobuf.ProtocolMessageEnum
A version number that identifies a different on-disk checkpoint format. Usually, each subclass of BaseSaverBuilder works with a particular version/format. However, it is possible that the same builder may be upgraded to support a newer checkpoint format in the future.Protobuf enum
tensorflow.SaverDef.CheckpointFormatVersion
Enum Constant and Description |
---|
LEGACY
Internal legacy format.
|
UNRECOGNIZED |
V1
Deprecated format: tf.Saver() which works with tensorflow::table::Table.
|
V2
Current format: more efficient.
|
Modifier and Type | Field and Description |
---|---|
static int |
LEGACY_VALUE
Internal legacy format.
|
static int |
V1_VALUE
Deprecated format: tf.Saver() which works with tensorflow::table::Table.
|
static int |
V2_VALUE
Current format: more efficient.
|
Modifier and Type | Method and Description |
---|---|
static SaverDef.CheckpointFormatVersion |
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<SaverDef.CheckpointFormatVersion> |
internalGetValueMap() |
static SaverDef.CheckpointFormatVersion |
valueOf(org.nd4j.shade.protobuf.Descriptors.EnumValueDescriptor desc) |
static SaverDef.CheckpointFormatVersion |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static SaverDef.CheckpointFormatVersion |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SaverDef.CheckpointFormatVersion[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SaverDef.CheckpointFormatVersion LEGACY
Internal legacy format.
LEGACY = 0;
public static final SaverDef.CheckpointFormatVersion V1
Deprecated format: tf.Saver() which works with tensorflow::table::Table.
V1 = 1;
public static final SaverDef.CheckpointFormatVersion V2
Current format: more efficient.
V2 = 2;
public static final SaverDef.CheckpointFormatVersion UNRECOGNIZED
public static final int LEGACY_VALUE
Internal legacy format.
LEGACY = 0;
public static final int V1_VALUE
Deprecated format: tf.Saver() which works with tensorflow::table::Table.
V1 = 1;
public static final int V2_VALUE
Current format: more efficient.
V2 = 2;
public static SaverDef.CheckpointFormatVersion[] values()
for (SaverDef.CheckpointFormatVersion c : SaverDef.CheckpointFormatVersion.values()) System.out.println(c);
public static SaverDef.CheckpointFormatVersion 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 SaverDef.CheckpointFormatVersion valueOf(int value)
forNumber(int)
instead.public static SaverDef.CheckpointFormatVersion forNumber(int value)
public static org.nd4j.shade.protobuf.Internal.EnumLiteMap<SaverDef.CheckpointFormatVersion> 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 SaverDef.CheckpointFormatVersion valueOf(org.nd4j.shade.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2020. All rights reserved.