Class BundleEntryProto
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
org.tensorflow.proto.BundleEntryProto
- All Implemented Interfaces:
Message, MessageLite, MessageLiteOrBuilder, MessageOrBuilder, Serializable, BundleEntryProtoOrBuilder
Describes the metadata related to a checkpointed tensor.Protobuf type
tensorflow.BundleEntryProto- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classDescribes the metadata related to a checkpointed tensor.Nested classes/interfaces inherited from class GeneratedMessageV3
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType, BuilderType>, GeneratedMessageV3.ExtendableMessage<MessageType>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType>, GeneratedMessageV3.FieldAccessorTable, GeneratedMessageV3.UnusedPrivateParameterNested classes/interfaces inherited from class AbstractMessageLite
AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class AbstractMessage
memoizedSizeFields inherited from class AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanintThe CRC32C checksum of the tensor bytes.static BundleEntryProtostatic final Descriptors.DescriptorgetDtype()The tensor dtype and shape.intThe tensor dtype and shape.longint64 offset = 4;intgetShape().tensorflow.TensorShapeProto shape = 2;.tensorflow.TensorShapeProto shape = 2;intThe binary content of the tensor lies in: File "shard_id": bytes [offset, offset + size).longgetSize()int64 size = 5;getSlices(int index) Iff present, this entry represents a partitioned tensor.intIff present, this entry represents a partitioned tensor.Iff present, this entry represents a partitioned tensor.getSlicesOrBuilder(int index) Iff present, this entry represents a partitioned tensor.List<? extends TensorSliceProtoOrBuilder> Iff present, this entry represents a partitioned tensor.final UnknownFieldSetinthashCode()booleanhasShape().tensorflow.TensorShapeProto shape = 2;protected GeneratedMessageV3.FieldAccessorTablefinal booleanstatic BundleEntryProto.Builderstatic BundleEntryProto.BuildernewBuilder(BundleEntryProto prototype) protected BundleEntryProto.Builderprotected Objectstatic BundleEntryProtoparseDelimitedFrom(InputStream input) static BundleEntryProtoparseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) static BundleEntryProtoparseFrom(byte[] data) static BundleEntryProtoparseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) static BundleEntryProtoparseFrom(ByteString data) static BundleEntryProtoparseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) static BundleEntryProtoparseFrom(CodedInputStream input) static BundleEntryProtoparseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) static BundleEntryProtoparseFrom(InputStream input) static BundleEntryProtoparseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) static BundleEntryProtoparseFrom(ByteBuffer data) static BundleEntryProtoparseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) static Parser<BundleEntryProto> parser()voidwriteTo(CodedOutputStream output) Methods inherited from class GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
-
Field Details
-
DTYPE_FIELD_NUMBER
public static final int DTYPE_FIELD_NUMBER- See Also:
-
SHAPE_FIELD_NUMBER
public static final int SHAPE_FIELD_NUMBER- See Also:
-
SHARD_ID_FIELD_NUMBER
public static final int SHARD_ID_FIELD_NUMBER- See Also:
-
OFFSET_FIELD_NUMBER
public static final int OFFSET_FIELD_NUMBER- See Also:
-
SIZE_FIELD_NUMBER
public static final int SIZE_FIELD_NUMBER- See Also:
-
CRC32C_FIELD_NUMBER
public static final int CRC32C_FIELD_NUMBER- See Also:
-
SLICES_FIELD_NUMBER
public static final int SLICES_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classGeneratedMessageV3
-
getUnknownFields
- Specified by:
getUnknownFieldsin interfaceMessageOrBuilder- Overrides:
getUnknownFieldsin classGeneratedMessageV3
-
getDescriptor
-
internalGetFieldAccessorTable
- Specified by:
internalGetFieldAccessorTablein classGeneratedMessageV3
-
getDtypeValue
public int getDtypeValue()The tensor dtype and shape.
.tensorflow.DataType dtype = 1;- Specified by:
getDtypeValuein interfaceBundleEntryProtoOrBuilder- Returns:
- The enum numeric value on the wire for dtype.
-
getDtype
The tensor dtype and shape.
.tensorflow.DataType dtype = 1;- Specified by:
getDtypein interfaceBundleEntryProtoOrBuilder- Returns:
- The dtype.
-
hasShape
public boolean hasShape().tensorflow.TensorShapeProto shape = 2;- Specified by:
hasShapein interfaceBundleEntryProtoOrBuilder- Returns:
- Whether the shape field is set.
-
getShape
.tensorflow.TensorShapeProto shape = 2;- Specified by:
getShapein interfaceBundleEntryProtoOrBuilder- Returns:
- The shape.
-
getShapeOrBuilder
.tensorflow.TensorShapeProto shape = 2;- Specified by:
getShapeOrBuilderin interfaceBundleEntryProtoOrBuilder
-
getShardId
public int getShardId()The binary content of the tensor lies in: File "shard_id": bytes [offset, offset + size).
int32 shard_id = 3;- Specified by:
getShardIdin interfaceBundleEntryProtoOrBuilder- Returns:
- The shardId.
-
getOffset
public long getOffset()int64 offset = 4;- Specified by:
getOffsetin interfaceBundleEntryProtoOrBuilder- Returns:
- The offset.
-
getSize
public long getSize()int64 size = 5;- Specified by:
getSizein interfaceBundleEntryProtoOrBuilder- Returns:
- The size.
-
getCrc32C
public int getCrc32C()The CRC32C checksum of the tensor bytes.
fixed32 crc32c = 6;- Specified by:
getCrc32Cin interfaceBundleEntryProtoOrBuilder- Returns:
- The crc32c.
-
getSlicesList
Iff present, this entry represents a partitioned tensor. The previous fields are interpreted as follows: "dtype", "shape": describe the full tensor. "shard_id", "offset", "size", "crc32c": all IGNORED. These information for each slice can be looked up in their own BundleEntryProto, keyed by each "slice_name".repeated .tensorflow.TensorSliceProto slices = 7;- Specified by:
getSlicesListin interfaceBundleEntryProtoOrBuilder
-
getSlicesOrBuilderList
Iff present, this entry represents a partitioned tensor. The previous fields are interpreted as follows: "dtype", "shape": describe the full tensor. "shard_id", "offset", "size", "crc32c": all IGNORED. These information for each slice can be looked up in their own BundleEntryProto, keyed by each "slice_name".repeated .tensorflow.TensorSliceProto slices = 7;- Specified by:
getSlicesOrBuilderListin interfaceBundleEntryProtoOrBuilder
-
getSlicesCount
public int getSlicesCount()Iff present, this entry represents a partitioned tensor. The previous fields are interpreted as follows: "dtype", "shape": describe the full tensor. "shard_id", "offset", "size", "crc32c": all IGNORED. These information for each slice can be looked up in their own BundleEntryProto, keyed by each "slice_name".repeated .tensorflow.TensorSliceProto slices = 7;- Specified by:
getSlicesCountin interfaceBundleEntryProtoOrBuilder
-
getSlices
Iff present, this entry represents a partitioned tensor. The previous fields are interpreted as follows: "dtype", "shape": describe the full tensor. "shard_id", "offset", "size", "crc32c": all IGNORED. These information for each slice can be looked up in their own BundleEntryProto, keyed by each "slice_name".repeated .tensorflow.TensorSliceProto slices = 7;- Specified by:
getSlicesin interfaceBundleEntryProtoOrBuilder
-
getSlicesOrBuilder
Iff present, this entry represents a partitioned tensor. The previous fields are interpreted as follows: "dtype", "shape": describe the full tensor. "shard_id", "offset", "size", "crc32c": all IGNORED. These information for each slice can be looked up in their own BundleEntryProto, keyed by each "slice_name".repeated .tensorflow.TensorSliceProto slices = 7;- Specified by:
getSlicesOrBuilderin interfaceBundleEntryProtoOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfaceMessageLiteOrBuilder- Overrides:
isInitializedin classGeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfaceMessageLite- Overrides:
writeToin classGeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfaceMessageLite- Overrides:
getSerializedSizein classGeneratedMessageV3
-
equals
- Specified by:
equalsin interfaceMessage- Overrides:
equalsin classAbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceMessage- Overrides:
hashCodein classAbstractMessage
-
parseFrom
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static BundleEntryProto parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException - Throws:
InvalidProtocolBufferException
-
parseFrom
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static BundleEntryProto parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException - Throws:
InvalidProtocolBufferException
-
parseFrom
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static BundleEntryProto parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException - Throws:
InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static BundleEntryProto parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static BundleEntryProto parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static BundleEntryProto parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfaceMessage- Specified by:
newBuilderForTypein interfaceMessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfaceMessage- Specified by:
toBuilderin interfaceMessageLite
-
newBuilderForType
- Specified by:
newBuilderForTypein classGeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfaceMessage- Specified by:
getParserForTypein interfaceMessageLite- Overrides:
getParserForTypein classGeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfaceMessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfaceMessageOrBuilder
-