Open tszumowski opened 4 years ago
When I remove histogram_freq
, everything works fine.
tensorboard_callback = tf.keras.callbacks.TensorBoard(log_dir=log_dir)
I do not currently have a need to view weight/activation histograms. So that is fine for me, and I'm happy to close this ticket. Though if you'd like to leave this issue open to address otherwise, it can remain open.
Thanks for the debugging! We should probably look into adding a battery of tests that include TensorBoard integration.
TB is working fine now.
I was able to get the Quickstart model running seamlessly.
However, I then tried to add a Tensorboard callback, by following the Tensorboard Quickstart.
In the tfrs API docs, it says:
Since it is a Keras model, I followed this section: Using TensorBoard with Keras Model.fit()
This means I replaced this line in Quickstart:
with these lines:
(in other words, adding the
callbacks=
input argument`)When I run this, I get the following error:
Should this work as-is with
.fit()
? Or do I need to make a custom implementation (as described at the top here)?I did notice the
tfrs.models.Model
usestf.GradientTape()
, and the Tensorboard docs have different directions for trainers that use that method.I also attached the
.py
file representation of the quickstart for reference (where the lines are added from above)tfrs_quickstart.py.txt