public static final class TensorRepresentation.SparseTensor.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<TensorRepresentation.SparseTensor.Builder> 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 type
tensorflow.metadata.v0.TensorRepresentation.SparseTensor| Modifier and Type | Method and Description |
|---|---|
TensorRepresentation.SparseTensor.Builder |
addAllIndexColumnNames(Iterable<String> values)
The columns constitute the coordinates of the values.
|
TensorRepresentation.SparseTensor.Builder |
addIndexColumnNames(String value)
The columns constitute the coordinates of the values.
|
TensorRepresentation.SparseTensor.Builder |
addIndexColumnNamesBytes(com.google.protobuf.ByteString value)
The columns constitute the coordinates of the values.
|
TensorRepresentation.SparseTensor.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
TensorRepresentation.SparseTensor |
build() |
TensorRepresentation.SparseTensor |
buildPartial() |
TensorRepresentation.SparseTensor.Builder |
clear() |
TensorRepresentation.SparseTensor.Builder |
clearDenseShape()
The dense shape of the resulting SparseTensor (does not include the batch
dimension).
|
TensorRepresentation.SparseTensor.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
TensorRepresentation.SparseTensor.Builder |
clearIndexColumnNames()
The columns constitute the coordinates of the values.
|
TensorRepresentation.SparseTensor.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
TensorRepresentation.SparseTensor.Builder |
clearValueColumnName()
The column that contains the values.
|
TensorRepresentation.SparseTensor.Builder |
clone() |
TensorRepresentation.SparseTensor |
getDefaultInstanceForType() |
FixedShape |
getDenseShape()
The dense shape of the resulting SparseTensor (does not include the batch
dimension).
|
FixedShape.Builder |
getDenseShapeBuilder()
The dense shape of the resulting SparseTensor (does not include the batch
dimension).
|
FixedShapeOrBuilder |
getDenseShapeOrBuilder()
The dense shape of the resulting SparseTensor (does not include the batch
dimension).
|
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getIndexColumnNames(int index)
The columns constitute the coordinates of the values.
|
com.google.protobuf.ByteString |
getIndexColumnNamesBytes(int index)
The columns constitute the coordinates of the values.
|
int |
getIndexColumnNamesCount()
The columns constitute the coordinates of the values.
|
com.google.protobuf.ProtocolStringList |
getIndexColumnNamesList()
The columns constitute the coordinates of the values.
|
String |
getValueColumnName()
The column that contains the values.
|
com.google.protobuf.ByteString |
getValueColumnNameBytes()
The column that contains the values.
|
boolean |
hasDenseShape()
The dense shape of the resulting SparseTensor (does not include the batch
dimension).
|
boolean |
hasValueColumnName()
The column that contains the values.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
TensorRepresentation.SparseTensor.Builder |
mergeDenseShape(FixedShape value)
The dense shape of the resulting SparseTensor (does not include the batch
dimension).
|
TensorRepresentation.SparseTensor.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
TensorRepresentation.SparseTensor.Builder |
mergeFrom(com.google.protobuf.Message other) |
TensorRepresentation.SparseTensor.Builder |
mergeFrom(TensorRepresentation.SparseTensor other) |
TensorRepresentation.SparseTensor.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
TensorRepresentation.SparseTensor.Builder |
setDenseShape(FixedShape.Builder builderForValue)
The dense shape of the resulting SparseTensor (does not include the batch
dimension).
|
TensorRepresentation.SparseTensor.Builder |
setDenseShape(FixedShape value)
The dense shape of the resulting SparseTensor (does not include the batch
dimension).
|
TensorRepresentation.SparseTensor.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
TensorRepresentation.SparseTensor.Builder |
setIndexColumnNames(int index,
String value)
The columns constitute the coordinates of the values.
|
TensorRepresentation.SparseTensor.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
TensorRepresentation.SparseTensor.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
TensorRepresentation.SparseTensor.Builder |
setValueColumnName(String value)
The column that contains the values.
|
TensorRepresentation.SparseTensor.Builder |
setValueColumnNameBytes(com.google.protobuf.ByteString value)
The column that contains the values.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<TensorRepresentation.SparseTensor.Builder>public TensorRepresentation.SparseTensor.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<TensorRepresentation.SparseTensor.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<TensorRepresentation.SparseTensor.Builder>public TensorRepresentation.SparseTensor getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic TensorRepresentation.SparseTensor build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic TensorRepresentation.SparseTensor buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic TensorRepresentation.SparseTensor.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<TensorRepresentation.SparseTensor.Builder>public TensorRepresentation.SparseTensor.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<TensorRepresentation.SparseTensor.Builder>public TensorRepresentation.SparseTensor.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<TensorRepresentation.SparseTensor.Builder>public TensorRepresentation.SparseTensor.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<TensorRepresentation.SparseTensor.Builder>public TensorRepresentation.SparseTensor.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<TensorRepresentation.SparseTensor.Builder>public TensorRepresentation.SparseTensor.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<TensorRepresentation.SparseTensor.Builder>public TensorRepresentation.SparseTensor.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<TensorRepresentation.SparseTensor.Builder>public TensorRepresentation.SparseTensor.Builder mergeFrom(TensorRepresentation.SparseTensor other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<TensorRepresentation.SparseTensor.Builder>public TensorRepresentation.SparseTensor.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<TensorRepresentation.SparseTensor.Builder>IOExceptionpublic boolean hasDenseShape()
The dense shape of the resulting SparseTensor (does not include the batch dimension).
optional .tensorflow.metadata.v0.FixedShape dense_shape = 1;hasDenseShape in interface TensorRepresentation.SparseTensorOrBuilderpublic FixedShape getDenseShape()
The dense shape of the resulting SparseTensor (does not include the batch dimension).
optional .tensorflow.metadata.v0.FixedShape dense_shape = 1;getDenseShape in interface TensorRepresentation.SparseTensorOrBuilderpublic TensorRepresentation.SparseTensor.Builder setDenseShape(FixedShape value)
The dense shape of the resulting SparseTensor (does not include the batch dimension).
optional .tensorflow.metadata.v0.FixedShape dense_shape = 1;public TensorRepresentation.SparseTensor.Builder setDenseShape(FixedShape.Builder builderForValue)
The dense shape of the resulting SparseTensor (does not include the batch dimension).
optional .tensorflow.metadata.v0.FixedShape dense_shape = 1;public TensorRepresentation.SparseTensor.Builder mergeDenseShape(FixedShape value)
The dense shape of the resulting SparseTensor (does not include the batch dimension).
optional .tensorflow.metadata.v0.FixedShape dense_shape = 1;public TensorRepresentation.SparseTensor.Builder clearDenseShape()
The dense shape of the resulting SparseTensor (does not include the batch dimension).
optional .tensorflow.metadata.v0.FixedShape dense_shape = 1;public FixedShape.Builder getDenseShapeBuilder()
The dense shape of the resulting SparseTensor (does not include the batch dimension).
optional .tensorflow.metadata.v0.FixedShape dense_shape = 1;public FixedShapeOrBuilder getDenseShapeOrBuilder()
The dense shape of the resulting SparseTensor (does not include the batch dimension).
optional .tensorflow.metadata.v0.FixedShape dense_shape = 1;getDenseShapeOrBuilder in interface TensorRepresentation.SparseTensorOrBuilderpublic 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;getIndexColumnNamesList in interface TensorRepresentation.SparseTensorOrBuilderpublic 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;getIndexColumnNamesCount in interface TensorRepresentation.SparseTensorOrBuilderpublic 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;getIndexColumnNames in interface TensorRepresentation.SparseTensorOrBuilderindex - The index of the element to return.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;getIndexColumnNamesBytes in interface TensorRepresentation.SparseTensorOrBuilderindex - The index of the value to return.public TensorRepresentation.SparseTensor.Builder setIndexColumnNames(int index, String value)
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;index - The index to set the value at.value - The indexColumnNames to set.public TensorRepresentation.SparseTensor.Builder addIndexColumnNames(String value)
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;value - The indexColumnNames to add.public TensorRepresentation.SparseTensor.Builder addAllIndexColumnNames(Iterable<String> values)
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;values - The indexColumnNames to add.public TensorRepresentation.SparseTensor.Builder clearIndexColumnNames()
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;public TensorRepresentation.SparseTensor.Builder addIndexColumnNamesBytes(com.google.protobuf.ByteString value)
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;value - The bytes of the indexColumnNames to add.public boolean hasValueColumnName()
The column that contains the values.
optional string value_column_name = 3;hasValueColumnName in interface TensorRepresentation.SparseTensorOrBuilderpublic String getValueColumnName()
The column that contains the values.
optional string value_column_name = 3;getValueColumnName in interface TensorRepresentation.SparseTensorOrBuilderpublic com.google.protobuf.ByteString getValueColumnNameBytes()
The column that contains the values.
optional string value_column_name = 3;getValueColumnNameBytes in interface TensorRepresentation.SparseTensorOrBuilderpublic TensorRepresentation.SparseTensor.Builder setValueColumnName(String value)
The column that contains the values.
optional string value_column_name = 3;value - The valueColumnName to set.public TensorRepresentation.SparseTensor.Builder clearValueColumnName()
The column that contains the values.
optional string value_column_name = 3;public TensorRepresentation.SparseTensor.Builder setValueColumnNameBytes(com.google.protobuf.ByteString value)
The column that contains the values.
optional string value_column_name = 3;value - The bytes for valueColumnName to set.public final TensorRepresentation.SparseTensor.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TensorRepresentation.SparseTensor.Builder>public final TensorRepresentation.SparseTensor.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TensorRepresentation.SparseTensor.Builder>Copyright © 2020 Gojek. All rights reserved.