Class TensorInfo.Builder

  • All Implemented Interfaces:
    Cloneable, org.nd4j.shade.protobuf.Message.Builder, org.nd4j.shade.protobuf.MessageLite.Builder, org.nd4j.shade.protobuf.MessageLiteOrBuilder, org.nd4j.shade.protobuf.MessageOrBuilder, TensorInfoOrBuilder
    Enclosing class:
    TensorInfo

    public static final class TensorInfo.Builder
    extends org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<TensorInfo.Builder>
    implements TensorInfoOrBuilder
     Information about a Tensor necessary for feeding or retrieval.
     
    Protobuf type tensorflow.TensorInfo
    • Method Detail

      • getDescriptor

        public static final org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<TensorInfo.Builder>
      • clear

        public TensorInfo.Builder clear()
        Specified by:
        clear in interface org.nd4j.shade.protobuf.Message.Builder
        Specified by:
        clear in interface org.nd4j.shade.protobuf.MessageLite.Builder
        Overrides:
        clear in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<TensorInfo.Builder>
      • getDescriptorForType

        public org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface org.nd4j.shade.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface org.nd4j.shade.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<TensorInfo.Builder>
      • getDefaultInstanceForType

        public TensorInfo getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface org.nd4j.shade.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface org.nd4j.shade.protobuf.MessageOrBuilder
      • build

        public TensorInfo build()
        Specified by:
        build in interface org.nd4j.shade.protobuf.Message.Builder
        Specified by:
        build in interface org.nd4j.shade.protobuf.MessageLite.Builder
      • buildPartial

        public TensorInfo buildPartial()
        Specified by:
        buildPartial in interface org.nd4j.shade.protobuf.Message.Builder
        Specified by:
        buildPartial in interface org.nd4j.shade.protobuf.MessageLite.Builder
      • clone

        public TensorInfo.Builder clone()
        Specified by:
        clone in interface org.nd4j.shade.protobuf.Message.Builder
        Specified by:
        clone in interface org.nd4j.shade.protobuf.MessageLite.Builder
        Overrides:
        clone in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<TensorInfo.Builder>
      • setField

        public TensorInfo.Builder setField​(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field,
                                           Object value)
        Specified by:
        setField in interface org.nd4j.shade.protobuf.Message.Builder
        Overrides:
        setField in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<TensorInfo.Builder>
      • clearField

        public TensorInfo.Builder clearField​(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface org.nd4j.shade.protobuf.Message.Builder
        Overrides:
        clearField in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<TensorInfo.Builder>
      • clearOneof

        public TensorInfo.Builder clearOneof​(org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface org.nd4j.shade.protobuf.Message.Builder
        Overrides:
        clearOneof in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<TensorInfo.Builder>
      • setRepeatedField

        public TensorInfo.Builder setRepeatedField​(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field,
                                                   int index,
                                                   Object value)
        Specified by:
        setRepeatedField in interface org.nd4j.shade.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<TensorInfo.Builder>
      • addRepeatedField

        public TensorInfo.Builder addRepeatedField​(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field,
                                                   Object value)
        Specified by:
        addRepeatedField in interface org.nd4j.shade.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<TensorInfo.Builder>
      • mergeFrom

        public TensorInfo.Builder mergeFrom​(org.nd4j.shade.protobuf.Message other)
        Specified by:
        mergeFrom in interface org.nd4j.shade.protobuf.Message.Builder
        Overrides:
        mergeFrom in class org.nd4j.shade.protobuf.AbstractMessage.Builder<TensorInfo.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface org.nd4j.shade.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<TensorInfo.Builder>
      • mergeFrom

        public TensorInfo.Builder mergeFrom​(org.nd4j.shade.protobuf.CodedInputStream input,
                                            org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws IOException
        Specified by:
        mergeFrom in interface org.nd4j.shade.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface org.nd4j.shade.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class org.nd4j.shade.protobuf.AbstractMessage.Builder<TensorInfo.Builder>
        Throws:
        IOException
      • hasName

        public boolean hasName()
         For dense `Tensor`s, the name of the tensor in the graph.
         
        string name = 1;
        Specified by:
        hasName in interface TensorInfoOrBuilder
        Returns:
        Whether the name field is set.
      • getName

        public String getName()
         For dense `Tensor`s, the name of the tensor in the graph.
         
        string name = 1;
        Specified by:
        getName in interface TensorInfoOrBuilder
        Returns:
        The name.
      • getNameBytes

        public org.nd4j.shade.protobuf.ByteString getNameBytes()
         For dense `Tensor`s, the name of the tensor in the graph.
         
        string name = 1;
        Specified by:
        getNameBytes in interface TensorInfoOrBuilder
        Returns:
        The bytes for name.
      • setName

        public TensorInfo.Builder setName​(String value)
         For dense `Tensor`s, the name of the tensor in the graph.
         
        string name = 1;
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public TensorInfo.Builder clearName()
         For dense `Tensor`s, the name of the tensor in the graph.
         
        string name = 1;
        Returns:
        This builder for chaining.
      • setNameBytes

        public TensorInfo.Builder setNameBytes​(org.nd4j.shade.protobuf.ByteString value)
         For dense `Tensor`s, the name of the tensor in the graph.
         
        string name = 1;
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • hasCooSparse

        public boolean hasCooSparse()
         There are many possible encodings of sparse matrices
         (https://en.wikipedia.org/wiki/Sparse_matrix).  Currently, TensorFlow
         uses only the COO encoding.  This is supported and documented in the
         SparseTensor Python class.
         
        .tensorflow.TensorInfo.CooSparse coo_sparse = 4;
        Specified by:
        hasCooSparse in interface TensorInfoOrBuilder
        Returns:
        Whether the cooSparse field is set.
      • getCooSparse

        public TensorInfo.CooSparse getCooSparse()
         There are many possible encodings of sparse matrices
         (https://en.wikipedia.org/wiki/Sparse_matrix).  Currently, TensorFlow
         uses only the COO encoding.  This is supported and documented in the
         SparseTensor Python class.
         
        .tensorflow.TensorInfo.CooSparse coo_sparse = 4;
        Specified by:
        getCooSparse in interface TensorInfoOrBuilder
        Returns:
        The cooSparse.
      • setCooSparse

        public TensorInfo.Builder setCooSparse​(TensorInfo.CooSparse value)
         There are many possible encodings of sparse matrices
         (https://en.wikipedia.org/wiki/Sparse_matrix).  Currently, TensorFlow
         uses only the COO encoding.  This is supported and documented in the
         SparseTensor Python class.
         
        .tensorflow.TensorInfo.CooSparse coo_sparse = 4;
      • setCooSparse

        public TensorInfo.Builder setCooSparse​(TensorInfo.CooSparse.Builder builderForValue)
         There are many possible encodings of sparse matrices
         (https://en.wikipedia.org/wiki/Sparse_matrix).  Currently, TensorFlow
         uses only the COO encoding.  This is supported and documented in the
         SparseTensor Python class.
         
        .tensorflow.TensorInfo.CooSparse coo_sparse = 4;
      • mergeCooSparse

        public TensorInfo.Builder mergeCooSparse​(TensorInfo.CooSparse value)
         There are many possible encodings of sparse matrices
         (https://en.wikipedia.org/wiki/Sparse_matrix).  Currently, TensorFlow
         uses only the COO encoding.  This is supported and documented in the
         SparseTensor Python class.
         
        .tensorflow.TensorInfo.CooSparse coo_sparse = 4;
      • clearCooSparse

        public TensorInfo.Builder clearCooSparse()
         There are many possible encodings of sparse matrices
         (https://en.wikipedia.org/wiki/Sparse_matrix).  Currently, TensorFlow
         uses only the COO encoding.  This is supported and documented in the
         SparseTensor Python class.
         
        .tensorflow.TensorInfo.CooSparse coo_sparse = 4;
      • getCooSparseBuilder

        public TensorInfo.CooSparse.Builder getCooSparseBuilder()
         There are many possible encodings of sparse matrices
         (https://en.wikipedia.org/wiki/Sparse_matrix).  Currently, TensorFlow
         uses only the COO encoding.  This is supported and documented in the
         SparseTensor Python class.
         
        .tensorflow.TensorInfo.CooSparse coo_sparse = 4;
      • getCooSparseOrBuilder

        public TensorInfo.CooSparseOrBuilder getCooSparseOrBuilder()
         There are many possible encodings of sparse matrices
         (https://en.wikipedia.org/wiki/Sparse_matrix).  Currently, TensorFlow
         uses only the COO encoding.  This is supported and documented in the
         SparseTensor Python class.
         
        .tensorflow.TensorInfo.CooSparse coo_sparse = 4;
        Specified by:
        getCooSparseOrBuilder in interface TensorInfoOrBuilder
      • getDtypeValue

        public int getDtypeValue()
        .tensorflow.DataType dtype = 2;
        Specified by:
        getDtypeValue in interface TensorInfoOrBuilder
        Returns:
        The enum numeric value on the wire for dtype.
      • setDtypeValue

        public TensorInfo.Builder setDtypeValue​(int value)
        .tensorflow.DataType dtype = 2;
        Parameters:
        value - The enum numeric value on the wire for dtype to set.
        Returns:
        This builder for chaining.
      • setDtype

        public TensorInfo.Builder setDtype​(DataType value)
        .tensorflow.DataType dtype = 2;
        Parameters:
        value - The dtype to set.
        Returns:
        This builder for chaining.
      • clearDtype

        public TensorInfo.Builder clearDtype()
        .tensorflow.DataType dtype = 2;
        Returns:
        This builder for chaining.
      • hasTensorShape

        public boolean hasTensorShape()
         The static shape should be recorded here, to the extent that it can
         be known in advance.  In the case of a SparseTensor, this field describes
         the logical shape of the represented tensor (aka dense_shape).
         
        .tensorflow.TensorShapeProto tensor_shape = 3;
        Specified by:
        hasTensorShape in interface TensorInfoOrBuilder
        Returns:
        Whether the tensorShape field is set.
      • getTensorShape

        public TensorShapeProto getTensorShape()
         The static shape should be recorded here, to the extent that it can
         be known in advance.  In the case of a SparseTensor, this field describes
         the logical shape of the represented tensor (aka dense_shape).
         
        .tensorflow.TensorShapeProto tensor_shape = 3;
        Specified by:
        getTensorShape in interface TensorInfoOrBuilder
        Returns:
        The tensorShape.
      • setTensorShape

        public TensorInfo.Builder setTensorShape​(TensorShapeProto value)
         The static shape should be recorded here, to the extent that it can
         be known in advance.  In the case of a SparseTensor, this field describes
         the logical shape of the represented tensor (aka dense_shape).
         
        .tensorflow.TensorShapeProto tensor_shape = 3;
      • setTensorShape

        public TensorInfo.Builder setTensorShape​(TensorShapeProto.Builder builderForValue)
         The static shape should be recorded here, to the extent that it can
         be known in advance.  In the case of a SparseTensor, this field describes
         the logical shape of the represented tensor (aka dense_shape).
         
        .tensorflow.TensorShapeProto tensor_shape = 3;
      • mergeTensorShape

        public TensorInfo.Builder mergeTensorShape​(TensorShapeProto value)
         The static shape should be recorded here, to the extent that it can
         be known in advance.  In the case of a SparseTensor, this field describes
         the logical shape of the represented tensor (aka dense_shape).
         
        .tensorflow.TensorShapeProto tensor_shape = 3;
      • clearTensorShape

        public TensorInfo.Builder clearTensorShape()
         The static shape should be recorded here, to the extent that it can
         be known in advance.  In the case of a SparseTensor, this field describes
         the logical shape of the represented tensor (aka dense_shape).
         
        .tensorflow.TensorShapeProto tensor_shape = 3;
      • getTensorShapeBuilder

        public TensorShapeProto.Builder getTensorShapeBuilder()
         The static shape should be recorded here, to the extent that it can
         be known in advance.  In the case of a SparseTensor, this field describes
         the logical shape of the represented tensor (aka dense_shape).
         
        .tensorflow.TensorShapeProto tensor_shape = 3;
      • getTensorShapeOrBuilder

        public TensorShapeProtoOrBuilder getTensorShapeOrBuilder()
         The static shape should be recorded here, to the extent that it can
         be known in advance.  In the case of a SparseTensor, this field describes
         the logical shape of the represented tensor (aka dense_shape).
         
        .tensorflow.TensorShapeProto tensor_shape = 3;
        Specified by:
        getTensorShapeOrBuilder in interface TensorInfoOrBuilder
      • setUnknownFields

        public final TensorInfo.Builder setUnknownFields​(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface org.nd4j.shade.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<TensorInfo.Builder>
      • mergeUnknownFields

        public final TensorInfo.Builder mergeUnknownFields​(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface org.nd4j.shade.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<TensorInfo.Builder>