Open JasonCaoJR opened 3 years ago
When reporting an issue it's customary to include the actual error message - this really helps in figuring out what's gone wrong.
Traceback (most recent call last):
File "D:/TechBuilder/TensorFlow/Dev202103/tfrs/tfrs1.py", line 214, in build()
or calling fit()
with some data, or specify an input_shape
argument in the first layer(s) for automatic build.
Process finished with exit code 1
You can try model.user_model.summary()
or model.movie_model.summary()
. It should then, output the parameters of each model. Hope that helps in a nutshell
you might need to run a batch of data through before calling summary()
If follow the quick start guide, https://www.tensorflow.org/recommenders/examples/quickstart
Define class MovieLensModel(tfrs.Model): model = MovieLensModel(user_model, movie_model, task)
after compile and fit the model, if try to call model.summary() function, it will generate error.