tensorflow / tensorflow/recommenders
model.summary() report errors
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 2k
- Forks
- 300
- PR merge metrics
- No merged PRs in 30d
Description
Hi thanks for writing this amazing package!
I'm trying to follow the tutorial codes for item retrieval: https://www.tensorflow.org/recommenders/examples/basic_retrieval
After fitting the model, I'm trying to see the detail information of the model, so I write model.summary(), however it shows
ValueError Traceback (most recent call last)
in
----> 1 model.summary()
/usr/local/lib/python3.8/site-packages/keras/engine/training.py in summary(self, line_length, positions, print_fn, expand_nested, show_trainable)
2867 """
2868 if not self.built:
-> 2869 raise ValueError(
2870 'This model has not yet been built. '
2871 'Build the model first by calling build() or by calling '
ValueError: This model has not yet been built. Build the model first by calling build() or by calling the model on a batch of data.
Though the model has been trained successfully, I'm wondering if it is a bug or the model type does not support model.summary()? Thanks.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the behavior using the TensorFlow Recommenders basic retrieval tutorial, then call model.summary() after fitting as described. Compare the resulting traceback with Keras' summary implementation in keras/engine/training.py and determine whether this model is expected to be built before summary can run. Done means documenting or fixing the observed behavior and verifying the tutorial flow.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, tensorflow
- Domain
- machine-learning
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100