public static final class
TensorMetadata.Builder
Metadata for a single tensor in the Snapshot Record.
tensorflow.data.experimental.TensorMetadata
Public Methods
TensorMetadata.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
|
TensorMetadata |
build()
|
TensorMetadata | |
TensorMetadata.Builder |
clear()
|
TensorMetadata.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
|
TensorMetadata.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
|
TensorMetadata.Builder |
clearTensorShape()
.tensorflow.TensorShapeProto tensor_shape = 2;
|
TensorMetadata.Builder |
clearTensorSizeBytes()
Number of uncompressed bytes used to store the tensor representation. |
TensorMetadata.Builder |
clone()
|
TensorMetadata | |
final static com.google.protobuf.Descriptors.Descriptor | |
com.google.protobuf.Descriptors.Descriptor | |
TensorShapeProto |
getTensorShape()
.tensorflow.TensorShapeProto tensor_shape = 2;
|
TensorShapeProto.Builder |
getTensorShapeBuilder()
.tensorflow.TensorShapeProto tensor_shape = 2;
|
TensorShapeProtoOrBuilder |
getTensorShapeOrBuilder()
.tensorflow.TensorShapeProto tensor_shape = 2;
|
long |
getTensorSizeBytes()
Number of uncompressed bytes used to store the tensor representation. |
boolean |
hasTensorShape()
.tensorflow.TensorShapeProto tensor_shape = 2;
|
final boolean | |
TensorMetadata.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
TensorMetadata.Builder |
mergeFrom(com.google.protobuf.Message other)
|
TensorMetadata.Builder | |
final TensorMetadata.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
|
TensorMetadata.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
|
TensorMetadata.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
|
TensorMetadata.Builder | |
TensorMetadata.Builder |
setTensorShape(TensorShapeProto.Builder builderForValue)
.tensorflow.TensorShapeProto tensor_shape = 2;
|
TensorMetadata.Builder |
setTensorSizeBytes(long value)
Number of uncompressed bytes used to store the tensor representation. |
final TensorMetadata.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
|
Inherited Methods
Public Methods
public TensorMetadata.Builder addRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
public TensorMetadata.Builder clearTensorSizeBytes ()
Number of uncompressed bytes used to store the tensor representation.
int64 tensor_size_bytes = 3;
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor ()
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType ()
public TensorShapeProto.Builder getTensorShapeBuilder ()
.tensorflow.TensorShapeProto tensor_shape = 2;
public TensorShapeProtoOrBuilder getTensorShapeOrBuilder ()
.tensorflow.TensorShapeProto tensor_shape = 2;
public long getTensorSizeBytes ()
Number of uncompressed bytes used to store the tensor representation.
int64 tensor_size_bytes = 3;
public boolean hasTensorShape ()
.tensorflow.TensorShapeProto tensor_shape = 2;
public final boolean isInitialized ()
public TensorMetadata.Builder mergeFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Throws
IOException |
---|
public TensorMetadata.Builder mergeTensorShape (TensorShapeProto value)
.tensorflow.TensorShapeProto tensor_shape = 2;
public final TensorMetadata.Builder mergeUnknownFields (com.google.protobuf.UnknownFieldSet unknownFields)
public TensorMetadata.Builder setField (com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
public TensorMetadata.Builder setRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
public TensorMetadata.Builder setTensorShape (TensorShapeProto value)
.tensorflow.TensorShapeProto tensor_shape = 2;
public TensorMetadata.Builder setTensorShape (TensorShapeProto.Builder builderForValue)
.tensorflow.TensorShapeProto tensor_shape = 2;
public TensorMetadata.Builder setTensorSizeBytes (long value)
Number of uncompressed bytes used to store the tensor representation.
int64 tensor_size_bytes = 3;