ExperimentalDatasetToTFRecord

public final class ExperimentalDatasetToTFRecord

Writes the given dataset to the given file using the TFRecord format.

Public Methods

static ExperimentalDatasetToTFRecord
create ( Scope scope, Operand <?> inputDataset, Operand <String> filename, Operand <String> compressionType)
Factory method to create a class wrapping a new ExperimentalDatasetToTFRecord operation.

Inherited Methods

Public Methods

public static ExperimentalDatasetToTFRecord create ( Scope scope, Operand <?> inputDataset, Operand <String> filename, Operand <String> compressionType)

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

Parameters
scope current scope
inputDataset A variant tensor representing the dataset to write.
filename A scalar string tensor representing the filename to use.
compressionType A scalar string tensor containing either (i) the empty string (no compression), (ii) "ZLIB", or (iii) "GZIP".
Returns
  • a new instance of ExperimentalDatasetToTFRecord