TensorShapeProto.Dim.Builder

public static final class TensorShapeProto.Dim.Builder

 One dimension of the tensor.
 
Protobuf type tensorflow.TensorShapeProto.Dim

Public Methods

TensorShapeProto.Dim.Builder
addRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
TensorShapeProto.Dim
TensorShapeProto.Dim
TensorShapeProto.Dim.Builder
TensorShapeProto.Dim.Builder
clearField (com.google.protobuf.Descriptors.FieldDescriptor field)
TensorShapeProto.Dim.Builder
clearName ()
 Optional name of the tensor dimension.
TensorShapeProto.Dim.Builder
clearOneof (com.google.protobuf.Descriptors.OneofDescriptor oneof)
TensorShapeProto.Dim.Builder
clearSize ()
 Size of the tensor in that dimension.
TensorShapeProto.Dim.Builder
TensorShapeProto.Dim
final static com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
String
getName ()
 Optional name of the tensor dimension.
com.google.protobuf.ByteString
getNameBytes ()
 Optional name of the tensor dimension.
long
getSize ()
 Size of the tensor in that dimension.
final boolean
TensorShapeProto.Dim.Builder
mergeFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
TensorShapeProto.Dim.Builder
mergeFrom (com.google.protobuf.Message other)
final TensorShapeProto.Dim.Builder
mergeUnknownFields (com.google.protobuf.UnknownFieldSet unknownFields)
TensorShapeProto.Dim.Builder
setField (com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
TensorShapeProto.Dim.Builder
setName (String value)
 Optional name of the tensor dimension.
TensorShapeProto.Dim.Builder
setNameBytes (com.google.protobuf.ByteString value)
 Optional name of the tensor dimension.
TensorShapeProto.Dim.Builder
setRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
TensorShapeProto.Dim.Builder
setSize (long value)
 Size of the tensor in that dimension.
final TensorShapeProto.Dim.Builder
setUnknownFields (com.google.protobuf.UnknownFieldSet unknownFields)

Inherited Methods

Public Methods

public TensorShapeProto.Dim.Builder addRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor field, Object value)

public TensorShapeProto.Dim build ()

public TensorShapeProto.Dim buildPartial ()

public TensorShapeProto.Dim.Builder clearField (com.google.protobuf.Descriptors.FieldDescriptor field)

public TensorShapeProto.Dim.Builder clearName ()

 Optional name of the tensor dimension.
 
string name = 2;

public TensorShapeProto.Dim.Builder clearOneof (com.google.protobuf.Descriptors.OneofDescriptor oneof)

public TensorShapeProto.Dim.Builder clearSize ()

 Size of the tensor in that dimension.
 This value must be >= -1, but values of -1 are reserved for "unknown"
 shapes (values of -1 mean "unknown" dimension).  Certain wrappers
 that work with TensorShapeProto may fail at runtime when deserializing
 a TensorShapeProto containing a dim value of -1.
 
int64 size = 1;

public TensorShapeProto.Dim getDefaultInstanceForType ()

public static final com.google.protobuf.Descriptors.Descriptor getDescriptor ()

public com.google.protobuf.Descriptors.Descriptor getDescriptorForType ()

public String getName ()

 Optional name of the tensor dimension.
 
string name = 2;

public com.google.protobuf.ByteString getNameBytes ()

 Optional name of the tensor dimension.
 
string name = 2;

public long getSize ()

 Size of the tensor in that dimension.
 This value must be >= -1, but values of -1 are reserved for "unknown"
 shapes (values of -1 mean "unknown" dimension).  Certain wrappers
 that work with TensorShapeProto may fail at runtime when deserializing
 a TensorShapeProto containing a dim value of -1.
 
int64 size = 1;

public final boolean isInitialized ()

public TensorShapeProto.Dim.Builder mergeFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

Throws
IOException

public TensorShapeProto.Dim.Builder mergeFrom (com.google.protobuf.Message other)

public final TensorShapeProto.Dim.Builder mergeUnknownFields (com.google.protobuf.UnknownFieldSet unknownFields)

public TensorShapeProto.Dim.Builder setField (com.google.protobuf.Descriptors.FieldDescriptor field, Object value)

public TensorShapeProto.Dim.Builder setName (String value)

 Optional name of the tensor dimension.
 
string name = 2;

public TensorShapeProto.Dim.Builder setNameBytes (com.google.protobuf.ByteString value)

 Optional name of the tensor dimension.
 
string name = 2;

public TensorShapeProto.Dim.Builder setRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)

public TensorShapeProto.Dim.Builder setSize (long value)

 Size of the tensor in that dimension.
 This value must be >= -1, but values of -1 are reserved for "unknown"
 shapes (values of -1 mean "unknown" dimension).  Certain wrappers
 that work with TensorShapeProto may fail at runtime when deserializing
 a TensorShapeProto containing a dim value of -1.
 
int64 size = 1;

public final TensorShapeProto.Dim.Builder setUnknownFields (com.google.protobuf.UnknownFieldSet unknownFields)