Skip to content

Conversation

@edknv
Copy link
Contributor

@edknv edknv commented Dec 28, 2022

Traditionally the idiom next(iter(loader)) has been used in examples to take a peek at the first batch, but due to changes in Tensorflow >= 2.10, next(iter(loader)) might show unpredictable behavior, especially with list columns. Dataloader now has a peek() method, which is more robust. This PR replaces next(iter(loader)) in the movie lens notebooks with the peek() method.

Testing

tests/unit/examples/test_z_legacy_notebooks.py
Manually ran and verified the notebooks.

@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@github-actions
Copy link

Documentation preview

https://nvidia-merlin.github.io/Merlin/review/pr-778

@edknv edknv self-assigned this Dec 28, 2022
@edknv edknv added enhancement New feature or request examples Adding new examples ci labels Dec 28, 2022
@edknv edknv added this to the Merlin 22.12 milestone Dec 28, 2022
@karlhigley karlhigley merged commit 3a7f683 into NVIDIA-Merlin:main Dec 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci enhancement New feature or request examples Adding new examples

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants