Class TensorInfo.CooSparse.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<TensorInfo.CooSparse.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<TensorInfo.CooSparse.Builder>
org.tensorflow.proto.TensorInfo.CooSparse.Builder
- All Implemented Interfaces:
Message.Builder, MessageLite.Builder, MessageLiteOrBuilder, MessageOrBuilder, Cloneable, TensorInfo.CooSparseOrBuilder
- Enclosing class:
TensorInfo.CooSparse
public static final class TensorInfo.CooSparse.Builder
extends GeneratedMessageV3.Builder<TensorInfo.CooSparse.Builder>
implements TensorInfo.CooSparseOrBuilder
For sparse tensors, The COO encoding stores a triple of values, indices, and shape.Protobuf type
tensorflow.TensorInfo.CooSparse-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(Descriptors.FieldDescriptor field, Object value) build()clear()The dynamic logical shape represented by the SparseTensor is recorded in the Tensor referenced here.The indices Tensor must have dtype int64 and shape [?The shape of the values Tensor is [?].clone()The dynamic logical shape represented by the SparseTensor is recorded in the Tensor referenced here.The dynamic logical shape represented by the SparseTensor is recorded in the Tensor referenced here.static final Descriptors.DescriptorThe indices Tensor must have dtype int64 and shape [?The indices Tensor must have dtype int64 and shape [?The shape of the values Tensor is [?].The shape of the values Tensor is [?].protected GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) mergeFrom(TensorInfo.CooSparse other) mergeUnknownFields(UnknownFieldSet unknownFields) setDenseShapeTensorName(String value) The dynamic logical shape represented by the SparseTensor is recorded in the Tensor referenced here.The dynamic logical shape represented by the SparseTensor is recorded in the Tensor referenced here.setField(Descriptors.FieldDescriptor field, Object value) setIndicesTensorName(String value) The indices Tensor must have dtype int64 and shape [?The indices Tensor must have dtype int64 and shape [?setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value) setUnknownFields(UnknownFieldSet unknownFields) setValuesTensorName(String value) The shape of the values Tensor is [?].The shape of the values Tensor is [?].Methods inherited from class GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface MessageLite.Builder
mergeFromMethods inherited from interface MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
-
internalGetFieldAccessorTable
- Specified by:
internalGetFieldAccessorTablein classGeneratedMessageV3.Builder<TensorInfo.CooSparse.Builder>
-
clear
- Specified by:
clearin interfaceMessage.Builder- Specified by:
clearin interfaceMessageLite.Builder- Overrides:
clearin classGeneratedMessageV3.Builder<TensorInfo.CooSparse.Builder>
-
getDescriptorForType
- Specified by:
getDescriptorForTypein interfaceMessage.Builder- Specified by:
getDescriptorForTypein interfaceMessageOrBuilder- Overrides:
getDescriptorForTypein classGeneratedMessageV3.Builder<TensorInfo.CooSparse.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfaceMessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfaceMessageOrBuilder
-
build
- Specified by:
buildin interfaceMessage.Builder- Specified by:
buildin interfaceMessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfaceMessage.Builder- Specified by:
buildPartialin interfaceMessageLite.Builder
-
clone
- Specified by:
clonein interfaceMessage.Builder- Specified by:
clonein interfaceMessageLite.Builder- Overrides:
clonein classGeneratedMessageV3.Builder<TensorInfo.CooSparse.Builder>
-
setField
- Specified by:
setFieldin interfaceMessage.Builder- Overrides:
setFieldin classGeneratedMessageV3.Builder<TensorInfo.CooSparse.Builder>
-
clearField
- Specified by:
clearFieldin interfaceMessage.Builder- Overrides:
clearFieldin classGeneratedMessageV3.Builder<TensorInfo.CooSparse.Builder>
-
clearOneof
- Specified by:
clearOneofin interfaceMessage.Builder- Overrides:
clearOneofin classGeneratedMessageV3.Builder<TensorInfo.CooSparse.Builder>
-
setRepeatedField
public TensorInfo.CooSparse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfaceMessage.Builder- Overrides:
setRepeatedFieldin classGeneratedMessageV3.Builder<TensorInfo.CooSparse.Builder>
-
addRepeatedField
public TensorInfo.CooSparse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfaceMessage.Builder- Overrides:
addRepeatedFieldin classGeneratedMessageV3.Builder<TensorInfo.CooSparse.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfaceMessage.Builder- Overrides:
mergeFromin classAbstractMessage.Builder<TensorInfo.CooSparse.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfaceMessageLiteOrBuilder- Overrides:
isInitializedin classGeneratedMessageV3.Builder<TensorInfo.CooSparse.Builder>
-
mergeFrom
public TensorInfo.CooSparse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfaceMessage.Builder- Specified by:
mergeFromin interfaceMessageLite.Builder- Overrides:
mergeFromin classAbstractMessage.Builder<TensorInfo.CooSparse.Builder>- Throws:
IOException
-
getValuesTensorName
The shape of the values Tensor is [?]. Its dtype must be the dtype of the SparseTensor as a whole, given in the enclosing TensorInfo.
string values_tensor_name = 1;- Specified by:
getValuesTensorNamein interfaceTensorInfo.CooSparseOrBuilder- Returns:
- The valuesTensorName.
-
getValuesTensorNameBytes
The shape of the values Tensor is [?]. Its dtype must be the dtype of the SparseTensor as a whole, given in the enclosing TensorInfo.
string values_tensor_name = 1;- Specified by:
getValuesTensorNameBytesin interfaceTensorInfo.CooSparseOrBuilder- Returns:
- The bytes for valuesTensorName.
-
setValuesTensorName
The shape of the values Tensor is [?]. Its dtype must be the dtype of the SparseTensor as a whole, given in the enclosing TensorInfo.
string values_tensor_name = 1;- Parameters:
value- The valuesTensorName to set.- Returns:
- This builder for chaining.
-
clearValuesTensorName
The shape of the values Tensor is [?]. Its dtype must be the dtype of the SparseTensor as a whole, given in the enclosing TensorInfo.
string values_tensor_name = 1;- Returns:
- This builder for chaining.
-
setValuesTensorNameBytes
The shape of the values Tensor is [?]. Its dtype must be the dtype of the SparseTensor as a whole, given in the enclosing TensorInfo.
string values_tensor_name = 1;- Parameters:
value- The bytes for valuesTensorName to set.- Returns:
- This builder for chaining.
-
getIndicesTensorName
The indices Tensor must have dtype int64 and shape [?, ?].
string indices_tensor_name = 2;- Specified by:
getIndicesTensorNamein interfaceTensorInfo.CooSparseOrBuilder- Returns:
- The indicesTensorName.
-
getIndicesTensorNameBytes
The indices Tensor must have dtype int64 and shape [?, ?].
string indices_tensor_name = 2;- Specified by:
getIndicesTensorNameBytesin interfaceTensorInfo.CooSparseOrBuilder- Returns:
- The bytes for indicesTensorName.
-
setIndicesTensorName
The indices Tensor must have dtype int64 and shape [?, ?].
string indices_tensor_name = 2;- Parameters:
value- The indicesTensorName to set.- Returns:
- This builder for chaining.
-
clearIndicesTensorName
The indices Tensor must have dtype int64 and shape [?, ?].
string indices_tensor_name = 2;- Returns:
- This builder for chaining.
-
setIndicesTensorNameBytes
The indices Tensor must have dtype int64 and shape [?, ?].
string indices_tensor_name = 2;- Parameters:
value- The bytes for indicesTensorName to set.- Returns:
- This builder for chaining.
-
getDenseShapeTensorName
The dynamic logical shape represented by the SparseTensor is recorded in the Tensor referenced here. It must have dtype int64 and shape [?].
string dense_shape_tensor_name = 3;- Specified by:
getDenseShapeTensorNamein interfaceTensorInfo.CooSparseOrBuilder- Returns:
- The denseShapeTensorName.
-
getDenseShapeTensorNameBytes
The dynamic logical shape represented by the SparseTensor is recorded in the Tensor referenced here. It must have dtype int64 and shape [?].
string dense_shape_tensor_name = 3;- Specified by:
getDenseShapeTensorNameBytesin interfaceTensorInfo.CooSparseOrBuilder- Returns:
- The bytes for denseShapeTensorName.
-
setDenseShapeTensorName
The dynamic logical shape represented by the SparseTensor is recorded in the Tensor referenced here. It must have dtype int64 and shape [?].
string dense_shape_tensor_name = 3;- Parameters:
value- The denseShapeTensorName to set.- Returns:
- This builder for chaining.
-
clearDenseShapeTensorName
The dynamic logical shape represented by the SparseTensor is recorded in the Tensor referenced here. It must have dtype int64 and shape [?].
string dense_shape_tensor_name = 3;- Returns:
- This builder for chaining.
-
setDenseShapeTensorNameBytes
The dynamic logical shape represented by the SparseTensor is recorded in the Tensor referenced here. It must have dtype int64 and shape [?].
string dense_shape_tensor_name = 3;- Parameters:
value- The bytes for denseShapeTensorName to set.- Returns:
- This builder for chaining.
-
setUnknownFields
- Specified by:
setUnknownFieldsin interfaceMessage.Builder- Overrides:
setUnknownFieldsin classGeneratedMessageV3.Builder<TensorInfo.CooSparse.Builder>
-
mergeUnknownFields
- Specified by:
mergeUnknownFieldsin interfaceMessage.Builder- Overrides:
mergeUnknownFieldsin classGeneratedMessageV3.Builder<TensorInfo.CooSparse.Builder>
-