BundleEntryProtoOrBuilder
Stay organized with collections
Save and categorize content based on your preferences.
Known Indirect Subclasses
|
Public Methods
public
abstract
int
getCrc32C
()
The CRC32C checksum of the tensor bytes.
fixed32 crc32c = 6;
public
abstract
DataType
getDtype
()
The tensor dtype and shape.
.tensorflow.DataType dtype = 1;
public
abstract
int
getDtypeValue
()
The tensor dtype and shape.
.tensorflow.DataType dtype = 1;
public
abstract
long
getOffset
()
.tensorflow.TensorShapeProto shape = 2;
.tensorflow.TensorShapeProto shape = 2;
public
abstract
int
getShardId
()
The binary content of the tensor lies in:
File "shard_id": bytes [offset, offset + size).
int32 shard_id = 3;
public
abstract
long
getSize
()
public
abstract
TensorSliceProto
getSlices
(int index)
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;
public
abstract
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;
public
abstract
List<TensorSliceProto>
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;
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;
public
abstract
List<? extends TensorSliceProtoOrBuilder>
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;
public
abstract
boolean
hasShape
()
.tensorflow.TensorShapeProto shape = 2;
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2021-11-29 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2021-11-29 UTC."],[],[],null,["# BundleEntryProtoOrBuilder\n\npublic interface **BundleEntryProtoOrBuilder** \n\n|---|---|---|\n| Known Indirect Subclasses [BundleEntryProto](/jvm/api_docs/java/org/tensorflow/proto/util/BundleEntryProto), [BundleEntryProto.Builder](/jvm/api_docs/java/org/tensorflow/proto/util/BundleEntryProto.Builder) |---------------------------------------------------------------------------------------------------|-------------------------------------------------------------------| | [BundleEntryProto](/jvm/api_docs/java/org/tensorflow/proto/util/BundleEntryProto) | ``` Describes the metadata related to a checkpointed tensor. ``` | | [BundleEntryProto.Builder](/jvm/api_docs/java/org/tensorflow/proto/util/BundleEntryProto.Builder) | ``` Describes the metadata related to a checkpointed tensor. ``` | |||\n\n### Public Methods\n\n|-------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract int | [getCrc32C](/jvm/api_docs/java/org/tensorflow/proto/util/BundleEntryProtoOrBuilder#getCrc32C())() ``` The CRC32C checksum of the tensor bytes. ``` |\n| abstract [DataType](/jvm/api_docs/java/org/tensorflow/proto/framework/DataType) | [getDtype](/jvm/api_docs/java/org/tensorflow/proto/util/BundleEntryProtoOrBuilder#getDtype())() ``` The tensor dtype and shape. ``` |\n| abstract int | [getDtypeValue](/jvm/api_docs/java/org/tensorflow/proto/util/BundleEntryProtoOrBuilder#getDtypeValue())() ``` The tensor dtype and shape. ``` |\n| abstract long | [getOffset](/jvm/api_docs/java/org/tensorflow/proto/util/BundleEntryProtoOrBuilder#getOffset())() `int64 offset = 4;` |\n| abstract [TensorShapeProto](/jvm/api_docs/java/org/tensorflow/proto/framework/TensorShapeProto) | [getShape](/jvm/api_docs/java/org/tensorflow/proto/util/BundleEntryProtoOrBuilder#getShape())() `.tensorflow.TensorShapeProto shape = 2;` |\n| abstract [TensorShapeProtoOrBuilder](/jvm/api_docs/java/org/tensorflow/proto/framework/TensorShapeProtoOrBuilder) | [getShapeOrBuilder](/jvm/api_docs/java/org/tensorflow/proto/util/BundleEntryProtoOrBuilder#getShapeOrBuilder())() `.tensorflow.TensorShapeProto shape = 2;` |\n| abstract int | [getShardId](/jvm/api_docs/java/org/tensorflow/proto/util/BundleEntryProtoOrBuilder#getShardId())() ``` The binary content of the tensor lies in: File \"shard_id\": bytes [offset, offset + size). ``` |\n| abstract long | [getSize](/jvm/api_docs/java/org/tensorflow/proto/util/BundleEntryProtoOrBuilder#getSize())() `int64 size = 5;` |\n| abstract [TensorSliceProto](/jvm/api_docs/java/org/tensorflow/proto/framework/TensorSliceProto) | [getSlices](/jvm/api_docs/java/org/tensorflow/proto/util/BundleEntryProtoOrBuilder#getSlices(int))(int index) ``` Iff present, this entry represents a partitioned tensor. ``` |\n| abstract int | [getSlicesCount](/jvm/api_docs/java/org/tensorflow/proto/util/BundleEntryProtoOrBuilder#getSlicesCount())() ``` Iff present, this entry represents a partitioned tensor. ``` |\n| abstract List\\\u003c[TensorSliceProto](/jvm/api_docs/java/org/tensorflow/proto/framework/TensorSliceProto)\\\u003e | [getSlicesList](/jvm/api_docs/java/org/tensorflow/proto/util/BundleEntryProtoOrBuilder#getSlicesList())() ``` Iff present, this entry represents a partitioned tensor. ``` |\n| abstract [TensorSliceProtoOrBuilder](/jvm/api_docs/java/org/tensorflow/proto/framework/TensorSliceProtoOrBuilder) | [getSlicesOrBuilder](/jvm/api_docs/java/org/tensorflow/proto/util/BundleEntryProtoOrBuilder#getSlicesOrBuilder(int))(int index) ``` Iff present, this entry represents a partitioned tensor. ``` |\n| abstract List\\\u003c? extends [TensorSliceProtoOrBuilder](/jvm/api_docs/java/org/tensorflow/proto/framework/TensorSliceProtoOrBuilder)\\\u003e | [getSlicesOrBuilderList](/jvm/api_docs/java/org/tensorflow/proto/util/BundleEntryProtoOrBuilder#getSlicesOrBuilderList())() ``` Iff present, this entry represents a partitioned tensor. ``` |\n| abstract boolean | [hasShape](/jvm/api_docs/java/org/tensorflow/proto/util/BundleEntryProtoOrBuilder#hasShape())() `.tensorflow.TensorShapeProto shape = 2;` |\n\nPublic Methods\n--------------\n\n#### public abstract int\n**getCrc32C**\n()\n\n\u003cbr /\u003e\n\n```\n The CRC32C checksum of the tensor bytes.\n \n```\n`fixed32 crc32c = 6;`\n\n\u003cbr /\u003e\n\n#### public abstract [DataType](/jvm/api_docs/java/org/tensorflow/proto/framework/DataType)\n**getDtype**\n()\n\n\u003cbr /\u003e\n\n```\n The tensor dtype and shape.\n \n```\n`.tensorflow.DataType dtype = 1;`\n\n\u003cbr /\u003e\n\n#### public abstract int\n**getDtypeValue**\n()\n\n\u003cbr /\u003e\n\n```\n The tensor dtype and shape.\n \n```\n`.tensorflow.DataType dtype = 1;`\n\n\u003cbr /\u003e\n\n#### public abstract long\n**getOffset**\n()\n\n`int64 offset = 4;` \n\n#### public abstract [TensorShapeProto](/jvm/api_docs/java/org/tensorflow/proto/framework/TensorShapeProto)\n**getShape**\n()\n\n`.tensorflow.TensorShapeProto shape = 2;` \n\n#### public abstract [TensorShapeProtoOrBuilder](/jvm/api_docs/java/org/tensorflow/proto/framework/TensorShapeProtoOrBuilder)\n**getShapeOrBuilder**\n()\n\n`.tensorflow.TensorShapeProto shape = 2;` \n\n#### public abstract int\n**getShardId**\n()\n\n\u003cbr /\u003e\n\n```\n The binary content of the tensor lies in:\n File \"shard_id\": bytes [offset, offset + size).\n \n```\n`int32 shard_id = 3;`\n\n\u003cbr /\u003e\n\n#### public abstract long\n**getSize**\n()\n\n`int64 size = 5;` \n\n#### public abstract [TensorSliceProto](/jvm/api_docs/java/org/tensorflow/proto/framework/TensorSliceProto)\n**getSlices**\n(int index)\n\n\u003cbr /\u003e\n\n```\n Iff present, this entry represents a partitioned tensor. The previous\n fields are interpreted as follows:\n \"dtype\", \"shape\": describe the full tensor.\n \"shard_id\", \"offset\", \"size\", \"crc32c\": all IGNORED.\n These information for each slice can be looked up in their own\n BundleEntryProto, keyed by each \"slice_name\".\n \n```\n`repeated .tensorflow.TensorSliceProto slices = 7;`\n\n\u003cbr /\u003e\n\n#### public abstract int\n**getSlicesCount**\n()\n\n\u003cbr /\u003e\n\n```\n Iff present, this entry represents a partitioned tensor. The previous\n fields are interpreted as follows:\n \"dtype\", \"shape\": describe the full tensor.\n \"shard_id\", \"offset\", \"size\", \"crc32c\": all IGNORED.\n These information for each slice can be looked up in their own\n BundleEntryProto, keyed by each \"slice_name\".\n \n```\n`repeated .tensorflow.TensorSliceProto slices = 7;`\n\n\u003cbr /\u003e\n\n#### public abstract List\\\u003c[TensorSliceProto](/jvm/api_docs/java/org/tensorflow/proto/framework/TensorSliceProto)\\\u003e\n**getSlicesList**\n()\n\n\u003cbr /\u003e\n\n```\n Iff present, this entry represents a partitioned tensor. The previous\n fields are interpreted as follows:\n \"dtype\", \"shape\": describe the full tensor.\n \"shard_id\", \"offset\", \"size\", \"crc32c\": all IGNORED.\n These information for each slice can be looked up in their own\n BundleEntryProto, keyed by each \"slice_name\".\n \n```\n`repeated .tensorflow.TensorSliceProto slices = 7;`\n\n\u003cbr /\u003e\n\n#### public abstract [TensorSliceProtoOrBuilder](/jvm/api_docs/java/org/tensorflow/proto/framework/TensorSliceProtoOrBuilder)\n**getSlicesOrBuilder**\n(int index)\n\n\u003cbr /\u003e\n\n```\n Iff present, this entry represents a partitioned tensor. The previous\n fields are interpreted as follows:\n \"dtype\", \"shape\": describe the full tensor.\n \"shard_id\", \"offset\", \"size\", \"crc32c\": all IGNORED.\n These information for each slice can be looked up in their own\n BundleEntryProto, keyed by each \"slice_name\".\n \n```\n`repeated .tensorflow.TensorSliceProto slices = 7;`\n\n\u003cbr /\u003e\n\n#### public abstract List\\\u003c? extends [TensorSliceProtoOrBuilder](/jvm/api_docs/java/org/tensorflow/proto/framework/TensorSliceProtoOrBuilder)\\\u003e\n**getSlicesOrBuilderList**\n()\n\n\u003cbr /\u003e\n\n```\n Iff present, this entry represents a partitioned tensor. The previous\n fields are interpreted as follows:\n \"dtype\", \"shape\": describe the full tensor.\n \"shard_id\", \"offset\", \"size\", \"crc32c\": all IGNORED.\n These information for each slice can be looked up in their own\n BundleEntryProto, keyed by each \"slice_name\".\n \n```\n`repeated .tensorflow.TensorSliceProto slices = 7;`\n\n\u003cbr /\u003e\n\n#### public abstract boolean\n**hasShape**\n()\n\n`.tensorflow.TensorShapeProto shape = 2;`"]]