public final class
SavedSlice
Saved tensor slice: it stores the name of the tensors, the slice, and the raw data.
tensorflow.SavedSlice
Nested Classes
class | SavedSlice.Builder | Saved tensor slice: it stores the name of the tensors, the slice, and the raw data. |
Constants
int | DATA_FIELD_NUMBER | |
int | NAME_FIELD_NUMBER | |
int | SLICE_FIELD_NUMBER |
Public Methods
boolean |
equals(Object obj)
|
TensorProto |
getData()
The raw data of the slice is stored as a TensorProto. |
TensorProtoOrBuilder |
getDataOrBuilder()
The raw data of the slice is stored as a TensorProto. |
static SavedSlice | |
SavedSlice | |
final static com.google.protobuf.Descriptors.Descriptor | |
String |
getName()
Name of the tensor that this slice belongs to. |
com.google.protobuf.ByteString |
getNameBytes()
Name of the tensor that this slice belongs to. |
|
|
int | |
TensorSliceProto |
getSlice()
Extent of the slice. |
TensorSliceProtoOrBuilder |
getSliceOrBuilder()
Extent of the slice. |
final com.google.protobuf.UnknownFieldSet | |
boolean |
hasData()
The raw data of the slice is stored as a TensorProto. |
boolean |
hasSlice()
Extent of the slice. |
int |
hashCode()
|
final boolean | |
static SavedSlice.Builder |
newBuilder(SavedSlice prototype)
|
static SavedSlice.Builder | |
SavedSlice.Builder | |
static SavedSlice |
parseDelimitedFrom(InputStream input)
|
static SavedSlice |
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
static SavedSlice |
parseFrom(ByteBuffer data)
|
static SavedSlice |
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
static SavedSlice |
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
static SavedSlice |
parseFrom(com.google.protobuf.CodedInputStream input)
|
static SavedSlice |
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
static SavedSlice |
parseFrom(com.google.protobuf.ByteString data)
|
static SavedSlice |
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
static SavedSlice |
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
static
|
parser()
|
SavedSlice.Builder | |
void |
writeTo(com.google.protobuf.CodedOutputStream output)
|
Inherited Methods
Constants
public static final int DATA_FIELD_NUMBER
Constant Value:
3
public static final int NAME_FIELD_NUMBER
Constant Value:
1
public static final int SLICE_FIELD_NUMBER
Constant Value:
2
Public Methods
public boolean equals (Object obj)
public 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;
public TensorProtoOrBuilder getDataOrBuilder ()
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 static final com.google.protobuf.Descriptors.Descriptor getDescriptor ()
public 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 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;
public
getParserForType
()
public int getSerializedSize ()
public TensorSliceProto getSlice ()
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 TensorSliceProtoOrBuilder getSliceOrBuilder ()
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 final com.google.protobuf.UnknownFieldSet getUnknownFields ()
public 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 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;
public int hashCode ()
public final boolean isInitialized ()
public static SavedSlice parseDelimitedFrom (InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Throws
IOException |
---|
public static SavedSlice parseFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Throws
IOException |
---|
public static SavedSlice parseFrom (ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Throws
InvalidProtocolBufferException |
---|
public static SavedSlice parseFrom (byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Throws
InvalidProtocolBufferException |
---|
public static SavedSlice parseFrom (com.google.protobuf.ByteString data)
Throws
InvalidProtocolBufferException |
---|
public static SavedSlice parseFrom (InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Throws
IOException |
---|
public static SavedSlice parseFrom (com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Throws
InvalidProtocolBufferException |
---|
public
static
parser
()
public void writeTo (com.google.protobuf.CodedOutputStream output)
Throws
IOException |
---|