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

python demo_functional.py Error #39

Closed
sampathweb opened this issue Apr 25, 2023 · 6 comments
Closed

python demo_functional.py Error #39

sampathweb opened this issue Apr 25, 2023 · 6 comments
Assignees

Comments

@sampathweb
Copy link
Collaborator

Running python demo_functional.py fails with error -

    File "keras-core/keras_core/losses/loss.py", line 69, in squeeze_to_same_rank  *
        x2_rank = len(x2.shape)

    ValueError: Cannot take the length of shape with unknown rank.
@sampathweb
Copy link
Collaborator Author

sampathweb commented Apr 25, 2023

The same error even if I change the model to Sequential. But all tests pass. So may be we need a integration test or update our model tests

@sampathweb
Copy link
Collaborator Author

sampathweb commented Apr 25, 2023

@fchollet - Ran git bisect and the culprit seems to be 2f4f72c

@AakashKumarNain
Copy link
Collaborator

@sampathweb does this work?

x2_rank = len(ops.shape(x2))

@sampathweb
Copy link
Collaborator Author

That moved past the error in loss.py, but is still broken. It probably has something to do with change done in commit 2f4f72c

@AakashKumarNain
Copy link
Collaborator

Okay. I will look into it today

@sampathweb
Copy link
Collaborator Author

This is now resolved after the fix aa88067

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