public QueueEnqueueMany queueEnqueueMany(Operand<?> handle, Iterable<Operand<?>> components, QueueEnqueueMany.Options... options)
QueueEnqueueMany
operationhandle
- The handle to a queue.components
- One or more tensors from which the enqueued tensors shouldoptions
- carries optional attributes valuesQueueEnqueueMany
public <T> DeserializeManySparse<T> deserializeManySparse(Operand<String> serializedSparse, Class<T> dtype)
DeserializeManySparse
operationserializedSparse
- 2-D, The `N` serialized `SparseTensor` objects.dtype
- The `dtype` of the serialized `SparseTensor` objects.DeserializeManySparse
public <U,T> SerializeSparse<U> serializeSparse(Operand<Long> sparseIndices, Operand<T> sparseValues, Operand<Long> sparseShape, Class<U> outType)
SerializeSparse
operationsparseIndices
- 2-D. The `indices` of the `SparseTensor`.sparseValues
- 1-D. The `values` of the `SparseTensor`.sparseShape
- 1-D. The `shape` of the `SparseTensor`.outType
- The `dtype` to use for serialization; the supported types are `string`SerializeSparse
public ParseSingleExample parseSingleExample(Operand<String> serialized, Iterable<Operand<?>> denseDefaults, Long numSparse, List<String> sparseKeys, List<String> denseKeys, List<Class<?>> sparseTypes, List<Shape> denseShapes)
ParseSingleExample
operationserialized
- A vector containing a batch of binary serialized Example protos.denseDefaults
- A list of Tensors (some may be empty), whose length matchesnumSparse
- The number of sparse features to be parsed from the example. ThissparseKeys
- A list of `num_sparse` strings.denseKeys
- The keys expected in the Examples' features associated with densesparseTypes
- A list of `num_sparse` types; the data types of data in eachdenseShapes
- The shapes of data in each Feature given in dense_keys.ParseSingleExample
public ReaderReset readerReset(Operand<?> readerHandle)
ReaderReset
operationreaderHandle
- Handle to a Reader.ReaderReset
public RandomShuffleQueue randomShuffleQueue(List<Class<?>> componentTypes, RandomShuffleQueue.Options... options)
RandomShuffleQueue
operationcomponentTypes
- The type of each component in a value.options
- carries optional attributes valuesRandomShuffleQueue
public QueueDequeue queueDequeue(Operand<?> handle, List<Class<?>> componentTypes, QueueDequeue.Options... options)
QueueDequeue
operationhandle
- The handle to a queue.componentTypes
- The type of each component in a tuple.options
- carries optional attributes valuesQueueDequeue
public ParseSingleSequenceExample parseSingleSequenceExample(Operand<String> serialized, Operand<String> featureListDenseMissingAssumedEmpty, Iterable<Operand<String>> contextSparseKeys, Iterable<Operand<String>> contextDenseKeys, Iterable<Operand<String>> featureListSparseKeys, Iterable<Operand<String>> featureListDenseKeys, Iterable<Operand<?>> contextDenseDefaults, Operand<String> debugName, List<Class<?>> contextSparseTypes, List<Class<?>> featureListDenseTypes, List<Class<?>> featureListSparseTypes, ParseSingleSequenceExample.Options... options)
ParseSingleSequenceExample
operationserialized
- A scalar containing a binary serialized SequenceExample proto.featureListDenseMissingAssumedEmpty
- A vector listing thecontextSparseKeys
- A list of Ncontext_sparse string Tensors (scalars).contextDenseKeys
- A list of Ncontext_dense string Tensors (scalars).featureListSparseKeys
- A list of Nfeature_list_sparse string TensorsfeatureListDenseKeys
- A list of Nfeature_list_dense string Tensors (scalars).contextDenseDefaults
- A list of Ncontext_dense Tensors (some may be empty).debugName
- A scalar containing the name of the serialized proto.contextSparseTypes
- A list of Ncontext_sparse types; the data types of data infeatureListDenseTypes
- featureListSparseTypes
- A list of Nfeature_list_sparse types; the data typesoptions
- carries optional attributes valuesParseSingleSequenceExample
public <T> SerializeSparse<String> serializeSparse(Operand<Long> sparseIndices, Operand<T> sparseValues, Operand<Long> sparseShape)
SerializeSparse
operationsparseIndices
- 2-D. The `indices` of the `SparseTensor`.sparseValues
- 1-D. The `values` of the `SparseTensor`.sparseShape
- 1-D. The `shape` of the `SparseTensor`.SerializeSparse
public ParseSequenceExample parseSequenceExample(Operand<String> serialized, Operand<String> debugName, Iterable<Operand<?>> contextDenseDefaults, List<String> featureListDenseMissingAssumedEmpty, List<String> contextSparseKeys, List<String> contextDenseKeys, List<String> featureListSparseKeys, List<String> featureListDenseKeys, List<Class<?>> contextSparseTypes, List<Class<?>> featureListDenseTypes, List<Class<?>> featureListSparseTypes, ParseSequenceExample.Options... options)
ParseSequenceExample
operationserialized
- A vector containing binary serialized SequenceExample protos.debugName
- A vector containing the names of the serialized protos.contextDenseDefaults
- A list of Ncontext_dense Tensors (some may be empty).featureListDenseMissingAssumedEmpty
- A vector listing thecontextSparseKeys
- A list of Ncontext_sparse string Tensors (scalars).contextDenseKeys
- A list of Ncontext_dense string Tensors (scalars).featureListSparseKeys
- A list of Nfeature_list_sparse string TensorsfeatureListDenseKeys
- A list of Nfeature_list_dense string Tensors (scalars).contextSparseTypes
- A list of Ncontext_sparse types; the data types of data infeatureListDenseTypes
- featureListSparseTypes
- A list of Nfeature_list_sparse types; the data typesoptions
- carries optional attributes valuesParseSequenceExample
public ReaderNumWorkUnitsCompleted readerNumWorkUnitsCompleted(Operand<?> readerHandle)
ReaderNumWorkUnitsCompleted
operationreaderHandle
- Handle to a Reader.ReaderNumWorkUnitsCompleted
public ReaderReadUpTo readerReadUpTo(Operand<?> readerHandle, Operand<?> queueHandle, Operand<Long> numRecords)
ReaderReadUpTo
operationreaderHandle
- Handle to a `Reader`.queueHandle
- Handle to a `Queue`, with string work items.numRecords
- number of records to read from `Reader`.ReaderReadUpTo
public DecodeBase64 decodeBase64(Operand<String> input)
DecodeBase64
operationinput
- Base64 strings to decode.DecodeBase64
public QueueEnqueue queueEnqueue(Operand<?> handle, Iterable<Operand<?>> components, QueueEnqueue.Options... options)
QueueEnqueue
operationhandle
- The handle to a queue.components
- One or more tensors from which the enqueued tensors should be taken.options
- carries optional attributes valuesQueueEnqueue
public QueueDequeueUpTo queueDequeueUpTo(Operand<?> handle, Operand<Integer> n, List<Class<?>> componentTypes, QueueDequeueUpTo.Options... options)
QueueDequeueUpTo
operationhandle
- The handle to a queue.n
- The number of tuples to dequeue.componentTypes
- The type of each component in a tuple.options
- carries optional attributes valuesQueueDequeueUpTo
public WholeFileReader wholeFileReader(WholeFileReader.Options... options)
WholeFileReader
operationoptions
- carries optional attributes valuesWholeFileReader
public MatchingFiles matchingFiles(Operand<String> pattern)
MatchingFiles
operationpattern
- Shell wildcard pattern(s). Scalar or vector of type string.MatchingFiles
public QueueClose queueClose(Operand<?> handle, QueueClose.Options... options)
QueueClose
operationhandle
- The handle to a queue.options
- carries optional attributes valuesQueueClose
public WriteFile writeFile(Operand<String> filename, Operand<String> contents)
WriteFile
operationfilename
- scalar. The name of the file to which we write the contents.contents
- scalar. The content to be written to the output file.WriteFile
public DecodeCompressed decodeCompressed(Operand<String> bytes, DecodeCompressed.Options... options)
DecodeCompressed
operationbytes
- A Tensor of string which is compressed.options
- carries optional attributes valuesDecodeCompressed
public ParseExample parseExample(Operand<String> serialized, Operand<String> names, Iterable<Operand<String>> sparseKeys, Iterable<Operand<String>> denseKeys, Iterable<Operand<?>> denseDefaults, List<Class<?>> sparseTypes, List<Shape> denseShapes)
ParseExample
operationserialized
- A vector containing a batch of binary serialized Example protos.names
- A vector containing the names of the serialized protos.sparseKeys
- A list of Nsparse string Tensors (scalars).denseKeys
- A list of Ndense string Tensors (scalars).denseDefaults
- A list of Ndense Tensors (some may be empty).sparseTypes
- A list of Nsparse types; the data types of data in each FeaturedenseShapes
- A list of Ndense shapes; the shapes of data in each FeatureParseExample
public ReadFile readFile(Operand<String> filename)
ReadFile
operationfilename
- ReadFile
public FifoQueue fifoQueue(List<Class<?>> componentTypes, FifoQueue.Options... options)
FifoQueue
operationcomponentTypes
- The type of each component in a value.options
- carries optional attributes valuesFifoQueue
public LmdbReader lmdbReader(LmdbReader.Options... options)
LmdbReader
operationoptions
- carries optional attributes valuesLmdbReader
public <T> ParseTensor<T> parseTensor(Operand<String> serialized, Class<T> outType)
ParseTensor
operationserialized
- A scalar string containing a serialized TensorProto proto.outType
- The type of the serialized tensor. The provided type must match theParseTensor
public ShardedFilename shardedFilename(Operand<String> basename, Operand<Integer> shard, Operand<Integer> numShards)
ShardedFilename
operationbasename
- shard
- numShards
- ShardedFilename
public PriorityQueue priorityQueue(List<Class<?>> componentTypes, List<Shape> shapes, PriorityQueue.Options... options)
PriorityQueue
operationcomponentTypes
- The type of each component in a value.shapes
- The shape of each component in a value. The length of this attr mustoptions
- carries optional attributes valuesPriorityQueue
public ReaderRestoreState readerRestoreState(Operand<?> readerHandle, Operand<String> state)
ReaderRestoreState
operationreaderHandle
- Handle to a Reader.state
- Result of a ReaderSerializeState of a Reader with typeReaderRestoreState
public QueueDequeueMany queueDequeueMany(Operand<?> handle, Operand<Integer> n, List<Class<?>> componentTypes, QueueDequeueMany.Options... options)
QueueDequeueMany
operationhandle
- The handle to a queue.n
- The number of tuples to dequeue.componentTypes
- The type of each component in a tuple.options
- carries optional attributes valuesQueueDequeueMany
public DecodeJsonExample decodeJsonExample(Operand<String> jsonExamples)
DecodeJsonExample
operationjsonExamples
- Each string is a JSON object serialized according to the JSONDecodeJsonExample
public <T> DecodeRaw<T> decodeRaw(Operand<String> bytes, Class<T> outType, DecodeRaw.Options... options)
DecodeRaw
operationbytes
- All the elements must have the same length.outType
- options
- carries optional attributes valuesDecodeRaw
public ShardedFilespec shardedFilespec(Operand<String> basename, Operand<Integer> numShards)
ShardedFilespec
operationbasename
- numShards
- ShardedFilespec
public ReaderRead readerRead(Operand<?> readerHandle, Operand<?> queueHandle)
ReaderRead
operationreaderHandle
- Handle to a Reader.queueHandle
- Handle to a Queue, with string work items.ReaderRead
public <U,T> SerializeManySparse<U> serializeManySparse(Operand<Long> sparseIndices, Operand<T> sparseValues, Operand<Long> sparseShape, Class<U> outType)
SerializeManySparse
operationsparseIndices
- 2-D. The `indices` of the minibatch `SparseTensor`.sparseValues
- 1-D. The `values` of the minibatch `SparseTensor`.sparseShape
- 1-D. The `shape` of the minibatch `SparseTensor`.outType
- The `dtype` to use for serialization; the supported types are `string`SerializeManySparse
public ReaderNumRecordsProduced readerNumRecordsProduced(Operand<?> readerHandle)
ReaderNumRecordsProduced
operationreaderHandle
- Handle to a Reader.ReaderNumRecordsProduced
public <T> SerializeTensor serializeTensor(Operand<T> tensor)
SerializeTensor
operationtensor
- A Tensor of type `T`.SerializeTensor
public TfRecordReader tfRecordReader(TfRecordReader.Options... options)
TfRecordReader
operationoptions
- carries optional attributes valuesTfRecordReader
public QueueIsClosed queueIsClosed(Operand<?> handle)
QueueIsClosed
operationhandle
- The handle to a queue.QueueIsClosed
public IdentityReader identityReader(IdentityReader.Options... options)
IdentityReader
operationoptions
- carries optional attributes valuesIdentityReader
public QueueSize queueSize(Operand<?> handle)
QueueSize
operationhandle
- The handle to a queue.QueueSize
public PaddingFifoQueue paddingFifoQueue(List<Class<?>> componentTypes, PaddingFifoQueue.Options... options)
PaddingFifoQueue
operationcomponentTypes
- The type of each component in a value.options
- carries optional attributes valuesPaddingFifoQueue
public <T> SerializeManySparse<String> serializeManySparse(Operand<Long> sparseIndices, Operand<T> sparseValues, Operand<Long> sparseShape)
SerializeManySparse
operationsparseIndices
- 2-D. The `indices` of the minibatch `SparseTensor`.sparseValues
- 1-D. The `values` of the minibatch `SparseTensor`.sparseShape
- 1-D. The `shape` of the minibatch `SparseTensor`.SerializeManySparse
public EncodeBase64 encodeBase64(Operand<String> input, EncodeBase64.Options... options)
EncodeBase64
operationinput
- Strings to be encoded.options
- carries optional attributes valuesEncodeBase64
public ReaderSerializeState readerSerializeState(Operand<?> readerHandle)
ReaderSerializeState
operationreaderHandle
- Handle to a Reader.ReaderSerializeState
public FixedLengthRecordReader fixedLengthRecordReader(Long recordBytes, FixedLengthRecordReader.Options... options)
FixedLengthRecordReader
operationrecordBytes
- Number of bytes in the record.options
- carries optional attributes valuesFixedLengthRecordReader
public TextLineReader textLineReader(TextLineReader.Options... options)
TextLineReader
operationoptions
- carries optional attributes valuesTextLineReader
public DecodeCsv decodeCsv(Operand<String> records, Iterable<Operand<?>> recordDefaults, DecodeCsv.Options... options)
DecodeCsv
operationrecords
- Each string is a record/row in the csv and all records should haverecordDefaults
- One tensor per column of the input record, with either aoptions
- carries optional attributes valuesDecodeCsv
Copyright © 2022. All rights reserved.