SavedSliceOrBuilder
Stay organized with collections
Save and categorize content based on your preferences.
Known Indirect Subclasses
SavedSlice |
Saved tensor slice: it stores the name of the tensors, the slice, and the
raw data. |
SavedSlice.Builder |
Saved tensor slice: it stores the name of the tensors, the slice, and the
raw data. |
|
Public Methods
public
abstract
TensorProto
getData
()
The raw data of the slice is stored as a TensorProto. Only raw data are
stored (we don't fill in fields such as dtype or tensor_shape).
.tensorflow.TensorProto data = 3;
The raw data of the slice is stored as a TensorProto. Only raw data are
stored (we don't fill in fields such as dtype or tensor_shape).
.tensorflow.TensorProto data = 3;
public
abstract
String
getName
()
Name of the tensor that this slice belongs to. This must be identical to
the name used to encode the key for this record.
string name = 1;
public
abstract
com.google.protobuf.ByteString
getNameBytes
()
Name of the tensor that this slice belongs to. This must be identical to
the name used to encode the key for this record.
string name = 1;
Extent of the slice. Must have one entry for each of the dimension of the
tensor that this slice belongs to.
.tensorflow.TensorSliceProto slice = 2;
Extent of the slice. Must have one entry for each of the dimension of the
tensor that this slice belongs to.
.tensorflow.TensorSliceProto slice = 2;
public
abstract
boolean
hasData
()
The raw data of the slice is stored as a TensorProto. Only raw data are
stored (we don't fill in fields such as dtype or tensor_shape).
.tensorflow.TensorProto data = 3;
public
abstract
boolean
hasSlice
()
Extent of the slice. Must have one entry for each of the dimension of the
tensor that this slice belongs to.
.tensorflow.TensorSliceProto slice = 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,["# SavedSliceOrBuilder\n\npublic interface **SavedSliceOrBuilder** \n\n|---|---|---|\n| Known Indirect Subclasses [SavedSlice](/jvm/api_docs/java/org/tensorflow/proto/util/SavedSlice), [SavedSlice.Builder](/jvm/api_docs/java/org/tensorflow/proto/util/SavedSlice.Builder) |---------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------| | [SavedSlice](/jvm/api_docs/java/org/tensorflow/proto/util/SavedSlice) | ``` Saved tensor slice: it stores the name of the tensors, the slice, and the raw data. ``` | | [SavedSlice.Builder](/jvm/api_docs/java/org/tensorflow/proto/util/SavedSlice.Builder) | ``` Saved tensor slice: it stores the name of the tensors, the slice, and the raw data. ``` | |||\n\n### Public Methods\n\n|-------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract [TensorProto](/jvm/api_docs/java/org/tensorflow/proto/framework/TensorProto) | [getData](/jvm/api_docs/java/org/tensorflow/proto/util/SavedSliceOrBuilder#getData())() ``` The raw data of the slice is stored as a TensorProto. ``` |\n| abstract [TensorProtoOrBuilder](/jvm/api_docs/java/org/tensorflow/proto/framework/TensorProtoOrBuilder) | [getDataOrBuilder](/jvm/api_docs/java/org/tensorflow/proto/util/SavedSliceOrBuilder#getDataOrBuilder())() ``` The raw data of the slice is stored as a TensorProto. ``` |\n| abstract String | [getName](/jvm/api_docs/java/org/tensorflow/proto/util/SavedSliceOrBuilder#getName())() ``` Name of the tensor that this slice belongs to. ``` |\n| abstract com.google.protobuf.ByteString | [getNameBytes](/jvm/api_docs/java/org/tensorflow/proto/util/SavedSliceOrBuilder#getNameBytes())() ``` Name of the tensor that this slice belongs to. ``` |\n| abstract [TensorSliceProto](/jvm/api_docs/java/org/tensorflow/proto/framework/TensorSliceProto) | [getSlice](/jvm/api_docs/java/org/tensorflow/proto/util/SavedSliceOrBuilder#getSlice())() ``` Extent of the slice. ``` |\n| abstract [TensorSliceProtoOrBuilder](/jvm/api_docs/java/org/tensorflow/proto/framework/TensorSliceProtoOrBuilder) | [getSliceOrBuilder](/jvm/api_docs/java/org/tensorflow/proto/util/SavedSliceOrBuilder#getSliceOrBuilder())() ``` Extent of the slice. ``` |\n| abstract boolean | [hasData](/jvm/api_docs/java/org/tensorflow/proto/util/SavedSliceOrBuilder#hasData())() ``` The raw data of the slice is stored as a TensorProto. ``` |\n| abstract boolean | [hasSlice](/jvm/api_docs/java/org/tensorflow/proto/util/SavedSliceOrBuilder#hasSlice())() ``` Extent of the slice. ``` |\n\nPublic Methods\n--------------\n\n#### public abstract [TensorProto](/jvm/api_docs/java/org/tensorflow/proto/framework/TensorProto)\n**getData**\n()\n\n\u003cbr /\u003e\n\n```\n The raw data of the slice is stored as a TensorProto. Only raw data are\n stored (we don't fill in fields such as dtype or tensor_shape).\n \n```\n`.tensorflow.TensorProto data = 3;`\n\n\u003cbr /\u003e\n\n#### public abstract [TensorProtoOrBuilder](/jvm/api_docs/java/org/tensorflow/proto/framework/TensorProtoOrBuilder)\n**getDataOrBuilder**\n()\n\n\u003cbr /\u003e\n\n```\n The raw data of the slice is stored as a TensorProto. Only raw data are\n stored (we don't fill in fields such as dtype or tensor_shape).\n \n```\n`.tensorflow.TensorProto data = 3;`\n\n\u003cbr /\u003e\n\n#### public abstract String\n**getName**\n()\n\n\u003cbr /\u003e\n\n```\n Name of the tensor that this slice belongs to. This must be identical to\n the name used to encode the key for this record.\n \n```\n`string name = 1;`\n\n\u003cbr /\u003e\n\n#### public abstract com.google.protobuf.ByteString\n**getNameBytes**\n()\n\n\u003cbr /\u003e\n\n```\n Name of the tensor that this slice belongs to. This must be identical to\n the name used to encode the key for this record.\n \n```\n`string name = 1;`\n\n\u003cbr /\u003e\n\n#### public abstract [TensorSliceProto](/jvm/api_docs/java/org/tensorflow/proto/framework/TensorSliceProto)\n**getSlice**\n()\n\n\u003cbr /\u003e\n\n```\n Extent of the slice. Must have one entry for each of the dimension of the\n tensor that this slice belongs to.\n \n```\n`.tensorflow.TensorSliceProto slice = 2;`\n\n\u003cbr /\u003e\n\n#### public abstract [TensorSliceProtoOrBuilder](/jvm/api_docs/java/org/tensorflow/proto/framework/TensorSliceProtoOrBuilder)\n**getSliceOrBuilder**\n()\n\n\u003cbr /\u003e\n\n```\n Extent of the slice. Must have one entry for each of the dimension of the\n tensor that this slice belongs to.\n \n```\n`.tensorflow.TensorSliceProto slice = 2;`\n\n\u003cbr /\u003e\n\n#### public abstract boolean\n**hasData**\n()\n\n\u003cbr /\u003e\n\n```\n The raw data of the slice is stored as a TensorProto. Only raw data are\n stored (we don't fill in fields such as dtype or tensor_shape).\n \n```\n`.tensorflow.TensorProto data = 3;`\n\n\u003cbr /\u003e\n\n#### public abstract boolean\n**hasSlice**\n()\n\n\u003cbr /\u003e\n\n```\n Extent of the slice. Must have one entry for each of the dimension of the\n tensor that this slice belongs to.\n \n```\n`.tensorflow.TensorSliceProto slice = 2;`\n\n\u003cbr /\u003e"]]