TensorShapeProto.Dim

public static final class TensorShapeProto.Dim

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

Nested Classes

class TensorShapeProto.Dim.Builder
 One dimension of the tensor. 

Constants

int NAME_FIELD_NUMBER
int SIZE_FIELD_NUMBER

Public Methods

boolean
equals(Object obj)
static TensorShapeProto.Dim
TensorShapeProto.Dim
final static com.google.protobuf.Descriptors.Descriptor
String
getName()
 Optional name of the tensor dimension.
com.google.protobuf.ByteString
getNameBytes()
 Optional name of the tensor dimension.
int
long
getSize()
 Size of the tensor in that dimension.
final com.google.protobuf.UnknownFieldSet
int
final boolean
static TensorShapeProto.Dim.Builder
static TensorShapeProto.Dim.Builder
TensorShapeProto.Dim.Builder
static TensorShapeProto.Dim
parseDelimitedFrom(InputStream input)
static TensorShapeProto.Dim
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static TensorShapeProto.Dim
parseFrom(ByteBuffer data)
static TensorShapeProto.Dim
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static TensorShapeProto.Dim
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static TensorShapeProto.Dim
parseFrom(com.google.protobuf.CodedInputStream input)
static TensorShapeProto.Dim
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static TensorShapeProto.Dim
parseFrom(com.google.protobuf.ByteString data)
static TensorShapeProto.Dim
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static TensorShapeProto.Dim
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static
parser()
TensorShapeProto.Dim.Builder
void
writeTo(com.google.protobuf.CodedOutputStream output)

Inherited Methods

Constants

public static final int NAME_FIELD_NUMBER

Constant Value: 2

public static final int SIZE_FIELD_NUMBER

Constant Value: 1

Public Methods

public boolean equals (Object obj)

public static TensorShapeProto.Dim getDefaultInstance ()

public TensorShapeProto.Dim getDefaultInstanceForType ()

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

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 getParserForType ()

public int getSerializedSize ()

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 com.google.protobuf.UnknownFieldSet getUnknownFields ()

public int hashCode ()

public final boolean isInitialized ()

public static TensorShapeProto.Dim.Builder newBuilder ()

public static TensorShapeProto.Dim.Builder newBuilder (TensorShapeProto.Dim prototype)

public TensorShapeProto.Dim.Builder newBuilderForType ()

public static TensorShapeProto.Dim parseDelimitedFrom (InputStream input)

Throws
IOException

public static TensorShapeProto.Dim parseDelimitedFrom (InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

Throws
IOException

public static TensorShapeProto.Dim parseFrom (ByteBuffer data)

Throws
InvalidProtocolBufferException

public static TensorShapeProto.Dim parseFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

Throws
IOException

public static TensorShapeProto.Dim parseFrom (ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

Throws
InvalidProtocolBufferException

public static TensorShapeProto.Dim parseFrom (com.google.protobuf.CodedInputStream input)

Throws
IOException

public static TensorShapeProto.Dim parseFrom (byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

Throws
InvalidProtocolBufferException

public static TensorShapeProto.Dim parseFrom (com.google.protobuf.ByteString data)

Throws
InvalidProtocolBufferException

public static TensorShapeProto.Dim parseFrom (InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

Throws
IOException

public static TensorShapeProto.Dim parseFrom (com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

Throws
InvalidProtocolBufferException

public static parser ()

public TensorShapeProto.Dim.Builder toBuilder ()

public void writeTo (com.google.protobuf.CodedOutputStream output)

Throws
IOException