Package org.tensorflow.metadata.v0
Class TensorRepresentation.SparseTensor
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- org.tensorflow.metadata.v0.TensorRepresentation.SparseTensor
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable,TensorRepresentation.SparseTensorOrBuilder
- Enclosing class:
- TensorRepresentation
public static final class TensorRepresentation.SparseTensor extends com.google.protobuf.GeneratedMessageV3 implements TensorRepresentation.SparseTensorOrBuilder
A tf.SparseTensor whose indices and values come from separate data columns. This will replace Schema.sparse_feature eventually. The index columns must be of INT type, and all the columns must co-occur and have the same valency at the same row.
Protobuf typetensorflow.metadata.v0.TensorRepresentation.SparseTensor- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTensorRepresentation.SparseTensor.BuilderA tf.SparseTensor whose indices and values come from separate data columns.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intDENSE_SHAPE_FIELD_NUMBERstatic intINDEX_COLUMN_NAMES_FIELD_NUMBERstatic com.google.protobuf.Parser<TensorRepresentation.SparseTensor>PARSERDeprecated.static intVALUE_COLUMN_NAME_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)static TensorRepresentation.SparseTensorgetDefaultInstance()TensorRepresentation.SparseTensorgetDefaultInstanceForType()FixedShapegetDenseShape()The dense shape of the resulting SparseTensor (does not include the batch dimension).FixedShapeOrBuildergetDenseShapeOrBuilder()The dense shape of the resulting SparseTensor (does not include the batch dimension).static com.google.protobuf.Descriptors.DescriptorgetDescriptor()StringgetIndexColumnNames(int index)The columns constitute the coordinates of the values.com.google.protobuf.ByteStringgetIndexColumnNamesBytes(int index)The columns constitute the coordinates of the values.intgetIndexColumnNamesCount()The columns constitute the coordinates of the values.com.google.protobuf.ProtocolStringListgetIndexColumnNamesList()The columns constitute the coordinates of the values.com.google.protobuf.Parser<TensorRepresentation.SparseTensor>getParserForType()intgetSerializedSize()com.google.protobuf.UnknownFieldSetgetUnknownFields()StringgetValueColumnName()The column that contains the values.com.google.protobuf.ByteStringgetValueColumnNameBytes()The column that contains the values.booleanhasDenseShape()The dense shape of the resulting SparseTensor (does not include the batch dimension).inthashCode()booleanhasValueColumnName()The column that contains the values.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static TensorRepresentation.SparseTensor.BuildernewBuilder()static TensorRepresentation.SparseTensor.BuildernewBuilder(TensorRepresentation.SparseTensor prototype)TensorRepresentation.SparseTensor.BuildernewBuilderForType()protected TensorRepresentation.SparseTensor.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static TensorRepresentation.SparseTensorparseDelimitedFrom(InputStream input)static TensorRepresentation.SparseTensorparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static TensorRepresentation.SparseTensorparseFrom(byte[] data)static TensorRepresentation.SparseTensorparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static TensorRepresentation.SparseTensorparseFrom(com.google.protobuf.ByteString data)static TensorRepresentation.SparseTensorparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static TensorRepresentation.SparseTensorparseFrom(com.google.protobuf.CodedInputStream input)static TensorRepresentation.SparseTensorparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static TensorRepresentation.SparseTensorparseFrom(InputStream input)static TensorRepresentation.SparseTensorparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static TensorRepresentation.SparseTensorparseFrom(ByteBuffer data)static TensorRepresentation.SparseTensorparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<TensorRepresentation.SparseTensor>parser()TensorRepresentation.SparseTensor.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
DENSE_SHAPE_FIELD_NUMBER
public static final int DENSE_SHAPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
INDEX_COLUMN_NAMES_FIELD_NUMBER
public static final int INDEX_COLUMN_NAMES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
VALUE_COLUMN_NAME_FIELD_NUMBER
public static final int VALUE_COLUMN_NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PARSER
@Deprecated public static final com.google.protobuf.Parser<TensorRepresentation.SparseTensor> PARSER
Deprecated.
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
hasDenseShape
public boolean hasDenseShape()
The dense shape of the resulting SparseTensor (does not include the batch dimension).
optional .tensorflow.metadata.v0.FixedShape dense_shape = 1;- Specified by:
hasDenseShapein interfaceTensorRepresentation.SparseTensorOrBuilder- Returns:
- Whether the denseShape field is set.
-
getDenseShape
public FixedShape getDenseShape()
The dense shape of the resulting SparseTensor (does not include the batch dimension).
optional .tensorflow.metadata.v0.FixedShape dense_shape = 1;- Specified by:
getDenseShapein interfaceTensorRepresentation.SparseTensorOrBuilder- Returns:
- The denseShape.
-
getDenseShapeOrBuilder
public FixedShapeOrBuilder getDenseShapeOrBuilder()
The dense shape of the resulting SparseTensor (does not include the batch dimension).
optional .tensorflow.metadata.v0.FixedShape dense_shape = 1;- Specified by:
getDenseShapeOrBuilderin interfaceTensorRepresentation.SparseTensorOrBuilder
-
getIndexColumnNamesList
public com.google.protobuf.ProtocolStringList getIndexColumnNamesList()
The columns constitute the coordinates of the values. indices_column[i][j] contains the coordinate of the i-th dimension of the j-th value.
repeated string index_column_names = 2;- Specified by:
getIndexColumnNamesListin interfaceTensorRepresentation.SparseTensorOrBuilder- Returns:
- A list containing the indexColumnNames.
-
getIndexColumnNamesCount
public int getIndexColumnNamesCount()
The columns constitute the coordinates of the values. indices_column[i][j] contains the coordinate of the i-th dimension of the j-th value.
repeated string index_column_names = 2;- Specified by:
getIndexColumnNamesCountin interfaceTensorRepresentation.SparseTensorOrBuilder- Returns:
- The count of indexColumnNames.
-
getIndexColumnNames
public String getIndexColumnNames(int index)
The columns constitute the coordinates of the values. indices_column[i][j] contains the coordinate of the i-th dimension of the j-th value.
repeated string index_column_names = 2;- Specified by:
getIndexColumnNamesin interfaceTensorRepresentation.SparseTensorOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The indexColumnNames at the given index.
-
getIndexColumnNamesBytes
public com.google.protobuf.ByteString getIndexColumnNamesBytes(int index)
The columns constitute the coordinates of the values. indices_column[i][j] contains the coordinate of the i-th dimension of the j-th value.
repeated string index_column_names = 2;- Specified by:
getIndexColumnNamesBytesin interfaceTensorRepresentation.SparseTensorOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the indexColumnNames at the given index.
-
hasValueColumnName
public boolean hasValueColumnName()
The column that contains the values.
optional string value_column_name = 3;- Specified by:
hasValueColumnNamein interfaceTensorRepresentation.SparseTensorOrBuilder- Returns:
- Whether the valueColumnName field is set.
-
getValueColumnName
public String getValueColumnName()
The column that contains the values.
optional string value_column_name = 3;- Specified by:
getValueColumnNamein interfaceTensorRepresentation.SparseTensorOrBuilder- Returns:
- The valueColumnName.
-
getValueColumnNameBytes
public com.google.protobuf.ByteString getValueColumnNameBytes()
The column that contains the values.
optional string value_column_name = 3;- Specified by:
getValueColumnNameBytesin interfaceTensorRepresentation.SparseTensorOrBuilder- Returns:
- The bytes for valueColumnName.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static TensorRepresentation.SparseTensor parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TensorRepresentation.SparseTensor parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TensorRepresentation.SparseTensor parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TensorRepresentation.SparseTensor parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TensorRepresentation.SparseTensor parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TensorRepresentation.SparseTensor parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TensorRepresentation.SparseTensor parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static TensorRepresentation.SparseTensor parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static TensorRepresentation.SparseTensor parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static TensorRepresentation.SparseTensor parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static TensorRepresentation.SparseTensor parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static TensorRepresentation.SparseTensor parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public TensorRepresentation.SparseTensor.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static TensorRepresentation.SparseTensor.Builder newBuilder()
-
newBuilder
public static TensorRepresentation.SparseTensor.Builder newBuilder(TensorRepresentation.SparseTensor prototype)
-
toBuilder
public TensorRepresentation.SparseTensor.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected TensorRepresentation.SparseTensor.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static TensorRepresentation.SparseTensor getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<TensorRepresentation.SparseTensor> parser()
-
getParserForType
public com.google.protobuf.Parser<TensorRepresentation.SparseTensor> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public TensorRepresentation.SparseTensor getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-