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

Please Help ValueError: Cannot convert '('c', 'o', 'u', 'n', 't', 'e', 'r')' to a shape. Found invalid entry 'c' of type '<class 'str'>'. #731

Open
Levine-Sam opened this issue Aug 3, 2024 · 2 comments

Comments

@Levine-Sam
Copy link

Hi, I have been working through the Recommending movies: retrieval tutorial and in the Metrics portion of the jupyter notebook I have been receiving a ValueError: Cannot convert '('c', 'o', 'u', 'n', 't', 'e', 'r')' to a shape. Found invalid entry 'c' of type '<class 'str'>'. Here is the cell that is giving me problems: metrics = tfrs.metrics.FactorizedTopK(
candidates=movies.batch(128).map(movie_model),
)

@y-71
Copy link

y-71 commented Aug 4, 2024

try to search for existing issues before creating your own

#712

@Brian-Mwangi-developer
Copy link

Brian-Mwangi-developer commented Jan 28, 2025

@Levine-Sam in the issue #712 it was recommended to add the line below before installing any tensor related package

import os
os.environ['TF_USE_LEGACY_KERAS'] = '1'

worked for me in google collab

check link

#712 (comment)

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

3 participants