public static enum BundleHeaderProto.Endianness extends Enum<BundleHeaderProto.Endianness> implements org.nd4j.shade.protobuf.ProtocolMessageEnum
An enum indicating the endianness of the platform that produced this bundle. A bundle can only be read by a platform with matching endianness. Defaults to LITTLE, as most modern platforms are little-endian. Affects the binary tensor data bytes only, not the metadata in protobufs.Protobuf enum
tensorflow.BundleHeaderProto.Endianness| Enum Constant and Description |
|---|
BIG
BIG = 1; |
LITTLE
LITTLE = 0; |
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
BIG_VALUE
BIG = 1; |
static int |
LITTLE_VALUE
LITTLE = 0; |
| Modifier and Type | Method and Description |
|---|---|
static BundleHeaderProto.Endianness |
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<BundleHeaderProto.Endianness> |
internalGetValueMap() |
static BundleHeaderProto.Endianness |
valueOf(org.nd4j.shade.protobuf.Descriptors.EnumValueDescriptor desc) |
static BundleHeaderProto.Endianness |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static BundleHeaderProto.Endianness |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BundleHeaderProto.Endianness[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BundleHeaderProto.Endianness LITTLE
LITTLE = 0;public static final BundleHeaderProto.Endianness BIG
BIG = 1;public static final BundleHeaderProto.Endianness UNRECOGNIZED
public static final int LITTLE_VALUE
LITTLE = 0;public static final int BIG_VALUE
BIG = 1;public static BundleHeaderProto.Endianness[] values()
for (BundleHeaderProto.Endianness c : BundleHeaderProto.Endianness.values()) System.out.println(c);
public static BundleHeaderProto.Endianness 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.EnumLitegetNumber in interface org.nd4j.shade.protobuf.ProtocolMessageEnum@Deprecated public static BundleHeaderProto.Endianness valueOf(int value)
forNumber(int) instead.public static BundleHeaderProto.Endianness forNumber(int value)
public static org.nd4j.shade.protobuf.Internal.EnumLiteMap<BundleHeaderProto.Endianness> internalGetValueMap()
public final org.nd4j.shade.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface org.nd4j.shade.protobuf.ProtocolMessageEnumpublic final org.nd4j.shade.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface org.nd4j.shade.protobuf.ProtocolMessageEnumpublic static final org.nd4j.shade.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static BundleHeaderProto.Endianness valueOf(org.nd4j.shade.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2021. All rights reserved.