Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] 16_nlp_with_rnns_and_attention.ipynb #180

Open
eddydw opened this issue Jan 12, 2025 · 0 comments
Open

[BUG] 16_nlp_with_rnns_and_attention.ipynb #180

eddydw opened this issue Jan 12, 2025 · 0 comments

Comments

@eddydw
Copy link

eddydw commented Jan 12, 2025

Thanks for helping us improve this project!

Before you create this issue
Please make sure you are using the latest updated code and libraries: see https://github.com/ageron/handson-ml3/blob/main/INSTALL.md#update-this-project-and-its-libraries

Also please make sure to read the FAQ (https://github.com/ageron/handson-ml3#faq) and search for existing issues (both open and closed), as your question may already have been answered: https://github.com/ageron/handson-ml3/issues

Describe the bug
In chapter 16 page 601 there is an instruction

translate("I like soccer")

However it fails with :


ValueError Traceback (most recent call last)
in <cell line: 1>()
----> 1 translate("I like soccer")

2 frames
/usr/local/lib/python3.10/dist-packages/optree/ops.py in tree_map(func, tree, is_leaf, none_is_leaf, namespace, *rests)
750 leaves, treespec = _C.flatten(tree, is_leaf, none_is_leaf, namespace)
751 flat_args = [leaves] + [treespec.flatten_up_to(r) for r in rests]
--> 752 return treespec.unflatten(map(func, *flat_args))
753
754

ValueError: Invalid dtype: str416

To Reproduce
Run the notebook 16_nlp_with_rnns_and_attention.ipynb in Colab

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant