Quick fix for dataset_len detection. tf.unique returns a list of indices of the same length as the input, so we should use unique_lens to check the length instead.
Fully backwards compatible: yes
PR checklist
[X] The quality checks are all passing
[X] The bug case / new feature is covered by tests
[ ] Any new features are well-documented (in docstrings or notebooks)
Related issue(s)/PRs: None
Summary
Quick fix for
dataset_len
detection.tf.unique
returns a list of indices of the same length as the input, so we should useunique_lens
to check the length instead.Fully backwards compatible: yes
PR checklist