Class TensorInfo.CooSparse.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<TensorInfo.CooSparse.Builder>
com.google.protobuf.GeneratedMessage.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 GeneratedMessage.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 TypeMethodDescriptionbuild()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 [?].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 GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) mergeFrom(TensorInfo.CooSparse other) 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.setIndicesTensorName(String value) The indices Tensor must have dtype int64 and shape [?The indices Tensor must have dtype int64 and shape [?setValuesTensorName(String value) The shape of the values Tensor is [?].The shape of the values Tensor is [?].Methods inherited from class GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, 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, mergeDelimitedFrom
-
Method Details
-
getDescriptor
-
internalGetFieldAccessorTable
- Specified by:
internalGetFieldAccessorTablein classGeneratedMessage.Builder<TensorInfo.CooSparse.Builder>
-
clear
- Specified by:
clearin interfaceMessage.Builder- Specified by:
clearin interfaceMessageLite.Builder- Overrides:
clearin classGeneratedMessage.Builder<TensorInfo.CooSparse.Builder>
-
getDescriptorForType
- Specified by:
getDescriptorForTypein interfaceMessage.Builder- Specified by:
getDescriptorForTypein interfaceMessageOrBuilder- Overrides:
getDescriptorForTypein classGeneratedMessage.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
-
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 classGeneratedMessage.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.
-