ML Community Day is November 9! Join us for updates from TensorFlow, JAX, and more Learn more

tf.raw_ops.DatasetCardinality

Returns the cardinality of input_dataset.

Returns the cardinality of input_dataset.

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

A Tensor of type int64.