Class TensorInfo.Builder

All Implemented Interfaces:
Message.Builder, MessageLite.Builder, MessageLiteOrBuilder, MessageOrBuilder, Cloneable, TensorInfoOrBuilder
Enclosing class:
TensorInfo

public static final class TensorInfo.Builder extends GeneratedMessage.Builder<TensorInfo.Builder> implements TensorInfoOrBuilder
Information about a Tensor necessary for feeding or retrieval.
Protobuf type tensorflow.TensorInfo
  • Method Details

    • getDescriptor

      public static final Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class GeneratedMessage.Builder<TensorInfo.Builder>
    • clear

      public TensorInfo.Builder clear()
      Specified by:
      clear in interface Message.Builder
      Specified by:
      clear in interface MessageLite.Builder
      Overrides:
      clear in class GeneratedMessage.Builder<TensorInfo.Builder>
    • getDescriptorForType

      public Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface Message.Builder
      Specified by:
      getDescriptorForType in interface MessageOrBuilder
      Overrides:
      getDescriptorForType in class GeneratedMessage.Builder<TensorInfo.Builder>
    • getDefaultInstanceForType

      public TensorInfo getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface MessageOrBuilder
    • build

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

      public TensorInfo buildPartial()
      Specified by:
      buildPartial in interface Message.Builder
      Specified by:
      buildPartial in interface MessageLite.Builder
    • mergeFrom

      public TensorInfo.Builder mergeFrom(Message other)
      Specified by:
      mergeFrom in interface Message.Builder
      Overrides:
      mergeFrom in class AbstractMessage.Builder<TensorInfo.Builder>
    • mergeFrom

      public TensorInfo.Builder mergeFrom(TensorInfo other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface MessageLiteOrBuilder
      Overrides:
      isInitialized in class GeneratedMessage.Builder<TensorInfo.Builder>
    • mergeFrom

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

      public TensorInfo.EncodingCase getEncodingCase()
      Specified by:
      getEncodingCase in interface TensorInfoOrBuilder
    • clearEncoding

      public TensorInfo.Builder clearEncoding()
    • 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 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(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
    • hasCompositeTensor

      public boolean hasCompositeTensor()
      Generic encoding for CompositeTensors.
      
      .tensorflow.TensorInfo.CompositeTensor composite_tensor = 5;
      Specified by:
      hasCompositeTensor in interface TensorInfoOrBuilder
      Returns:
      Whether the compositeTensor field is set.
    • getCompositeTensor

      public TensorInfo.CompositeTensor getCompositeTensor()
      Generic encoding for CompositeTensors.
      
      .tensorflow.TensorInfo.CompositeTensor composite_tensor = 5;
      Specified by:
      getCompositeTensor in interface TensorInfoOrBuilder
      Returns:
      The compositeTensor.
    • setCompositeTensor

      public TensorInfo.Builder setCompositeTensor(TensorInfo.CompositeTensor value)
      Generic encoding for CompositeTensors.
      
      .tensorflow.TensorInfo.CompositeTensor composite_tensor = 5;
    • setCompositeTensor

      public TensorInfo.Builder setCompositeTensor(TensorInfo.CompositeTensor.Builder builderForValue)
      Generic encoding for CompositeTensors.
      
      .tensorflow.TensorInfo.CompositeTensor composite_tensor = 5;
    • mergeCompositeTensor

      public TensorInfo.Builder mergeCompositeTensor(TensorInfo.CompositeTensor value)
      Generic encoding for CompositeTensors.
      
      .tensorflow.TensorInfo.CompositeTensor composite_tensor = 5;
    • clearCompositeTensor

      public TensorInfo.Builder clearCompositeTensor()
      Generic encoding for CompositeTensors.
      
      .tensorflow.TensorInfo.CompositeTensor composite_tensor = 5;
    • getCompositeTensorBuilder

      public TensorInfo.CompositeTensor.Builder getCompositeTensorBuilder()
      Generic encoding for CompositeTensors.
      
      .tensorflow.TensorInfo.CompositeTensor composite_tensor = 5;
    • getCompositeTensorOrBuilder

      public TensorInfo.CompositeTensorOrBuilder getCompositeTensorOrBuilder()
      Generic encoding for CompositeTensors.
      
      .tensorflow.TensorInfo.CompositeTensor composite_tensor = 5;
      Specified by:
      getCompositeTensorOrBuilder 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.
    • getDtype

      public DataType getDtype()
      .tensorflow.DataType dtype = 2;
      Specified by:
      getDtype in interface TensorInfoOrBuilder
      Returns:
      The dtype.
    • 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