TFRecordDatasetV2

public final class TFRecordDatasetV2

Creates a dataset that emits the records from one or more TFRecord files.

Nested Classes

class TFRecordDatasetV2.Options Optional attributes for TFRecordDatasetV2  

Public Methods

Output<Object>
asOutput()
Returns the symbolic handle of a tensor.
static TFRecordDatasetV2
create(Scope scope, Operand<String> filenames, Operand<String> compressionType, Operand<Long> bufferSize, Operand<Long> byteOffsets, Options... options)
Factory method to create a class wrapping a new TFRecordDatasetV2 operation.
Output<?>
handle()
static TFRecordDatasetV2.Options
metadata(String metadata)

Inherited Methods

Public Methods

public Output<Object> asOutput ()

Returns the symbolic handle of a tensor.

Inputs to TensorFlow operations are outputs of another TensorFlow operation. This method is used to obtain a symbolic handle that represents the computation of the input.

public static TFRecordDatasetV2 create (Scope scope, Operand<String> filenames, Operand<String> compressionType, Operand<Long> bufferSize, Operand<Long> byteOffsets, Options... options)

Factory method to create a class wrapping a new TFRecordDatasetV2 operation.

Parameters
scope current scope
filenames A scalar or vector containing the name(s) of the file(s) to be read.
compressionType A scalar containing either (i) the empty string (no compression), (ii) "ZLIB", or (iii) "GZIP".
bufferSize A scalar representing the number of bytes to buffer. A value of 0 means no buffering will be performed.
byteOffsets A scalar or vector containing the number of bytes for each file that will be skipped prior to reading.
options carries optional attributes values
Returns
  • a new instance of TFRecordDatasetV2

public Output<?> handle ()

public static TFRecordDatasetV2.Options metadata (String metadata)