public static final class
TensorSpecProto.Builder
A protobuf to represent tf.TensorSpec.
tensorflow.TensorSpecProto
Public Methods
TensorSpecProto.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
|
TensorSpecProto |
build()
|
TensorSpecProto | |
TensorSpecProto.Builder |
clear()
|
TensorSpecProto.Builder |
clearDtype()
.tensorflow.DataType dtype = 3;
|
TensorSpecProto.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
|
TensorSpecProto.Builder |
clearName()
string name = 1;
|
TensorSpecProto.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
|
TensorSpecProto.Builder |
clearShape()
.tensorflow.TensorShapeProto shape = 2;
|
TensorSpecProto.Builder |
clone()
|
TensorSpecProto | |
final static com.google.protobuf.Descriptors.Descriptor | |
com.google.protobuf.Descriptors.Descriptor | |
DataType |
getDtype()
.tensorflow.DataType dtype = 3;
|
int |
getDtypeValue()
.tensorflow.DataType dtype = 3;
|
String |
getName()
string name = 1;
|
com.google.protobuf.ByteString |
getNameBytes()
string name = 1;
|
TensorShapeProto |
getShape()
.tensorflow.TensorShapeProto shape = 2;
|
TensorShapeProto.Builder |
getShapeBuilder()
.tensorflow.TensorShapeProto shape = 2;
|
TensorShapeProtoOrBuilder |
getShapeOrBuilder()
.tensorflow.TensorShapeProto shape = 2;
|
boolean |
hasShape()
.tensorflow.TensorShapeProto shape = 2;
|
final boolean | |
TensorSpecProto.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
TensorSpecProto.Builder |
mergeFrom(com.google.protobuf.Message other)
|
TensorSpecProto.Builder | |
final TensorSpecProto.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
|
TensorSpecProto.Builder | |
TensorSpecProto.Builder |
setDtypeValue(int value)
.tensorflow.DataType dtype = 3;
|
TensorSpecProto.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
|
TensorSpecProto.Builder |
setName(String value)
string name = 1;
|
TensorSpecProto.Builder |
setNameBytes(com.google.protobuf.ByteString value)
string name = 1;
|
TensorSpecProto.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
|
TensorSpecProto.Builder | |
TensorSpecProto.Builder | |
final TensorSpecProto.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
|
Inherited Methods
Public Methods
public TensorSpecProto.Builder addRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor ()
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType ()
public int getDtypeValue ()
.tensorflow.DataType dtype = 3;
public String getName ()
string name = 1;
public com.google.protobuf.ByteString getNameBytes ()
string name = 1;
public boolean hasShape ()
.tensorflow.TensorShapeProto shape = 2;
public final boolean isInitialized ()
public TensorSpecProto.Builder mergeFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Throws
IOException |
---|
public TensorSpecProto.Builder mergeShape (TensorShapeProto value)
.tensorflow.TensorShapeProto shape = 2;
public final TensorSpecProto.Builder mergeUnknownFields (com.google.protobuf.UnknownFieldSet unknownFields)
public TensorSpecProto.Builder setField (com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
public TensorSpecProto.Builder setRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
public TensorSpecProto.Builder setShape (TensorShapeProto value)
.tensorflow.TensorShapeProto shape = 2;
public TensorSpecProto.Builder setShape (TensorShapeProto.Builder builderForValue)
.tensorflow.TensorShapeProto shape = 2;