Help protect the Great Barrier Reef with TensorFlow on Kaggle Join Challenge

Asserts the cardinality of the input dataset.

Used in the notebooks

Used in the tutorials
dataset ="examples.tfrecord")
cardinality =
print((cardinality ==
dataset = dataset.apply(

expected_cardinality The expected cardinality of the input dataset.

A Dataset transformation function, which can be passed to

FailedPreconditionError The assertion is checked at runtime (when iterating the dataset) and an error is raised if the actual and expected cardinality differ.