Support accurate dataset length computation in `TFDSDataset` components in TF2.3
AdamHillier opened this issue · 0 comments
AdamHillier commented
From the TF 2.3 release notes:
- tf.data.experimental.cardinality is now a method on tf.data.Dataset.
- tf.data.Dataset now supports len(Dataset) when the cardinality is finite.
We should make use of these functions here:
zookeeper/zookeeper/tf/dataset.py
Lines 114 to 117 in b0b9bcf