tf.raw_ops.DatasetCardinality

Returns the cardinality of input_dataset.

tf.raw_ops.DatasetCardinality(
    input_dataset, name=None
)

Returns the cardinality of input_dataset.

Args:

  • input_dataset: A Tensor of type variant. A variant tensor representing the dataset to return cardinality for.
  • name: A name for the operation (optional).

Returns:

A Tensor of type int64.