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

Need hash_func for type unknown #1187

Closed
tc87 opened this issue Mar 6, 2020 · 2 comments
Closed

Need hash_func for type unknown #1187

tc87 opened this issue Mar 6, 2020 · 2 comments
Assignees
Labels
feature:cache Related to st.cache_data and st.cache_resource feature:cache-hash-func type:enhancement Requests for feature enhancements or new features

Comments

@tc87
Copy link
Contributor

tc87 commented Mar 6, 2020

Summary

A community member noticed a "cannot hash of type" issue. More information can be found in this forum discussion.

Full error message

This is the error the community member received:UnhashableType: Cannot hash object of type _thread.RLock

@tc87 tc87 added type:bug Something isn't working feature:cache-hash-func feature:cache Related to st.cache_data and st.cache_resource labels Mar 6, 2020
@tc87 tc87 assigned tvst and jrhone Mar 6, 2020
@tc87
Copy link
Contributor Author

tc87 commented Mar 6, 2020

More context from user:

FYI the type of the loaded model (which I apparently can’t reach) is returned as:
tensorflow.python.saved_model.load.Loader._recreate_base_user_object.<locals>._UserObject

I resolved the issue using allow_output_mutation=True.

@tc87 tc87 changed the title Need hash_func for type _thread.RLock Need hash_func for type unknown Mar 6, 2020
@jrhone jrhone added type:enhancement Requests for feature enhancements or new features and removed type:bug Something isn't working labels Apr 5, 2020
@tc87
Copy link
Contributor Author

tc87 commented Apr 22, 2020

The root of this seems to be the same as 1186. Closing this as a duplicate.

@tc87 tc87 closed this as completed Apr 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature:cache Related to st.cache_data and st.cache_resource feature:cache-hash-func type:enhancement Requests for feature enhancements or new features
Projects
None yet
Development

No branches or pull requests

3 participants