tensorflow / tensorflow/tensorboard
Implement/document TB debugging with tf.keras model.fit
@caisq is already working on this.
Since Mar 10, 2020.
- Dominant language
- TypeScript
- Stars
- 7.2k
- Forks
- 1.7k
- Avg merge
- 4d 22h
- Merged PRs (30d)
- 1
Description
Currently (in TF 2.0.0 and TF 2.1.0 and tf-nightly/tb-nightly) the /#debugger view shows this snippet for “Keras Model”:
import tensorflow as tf
from tensorflow.python import debug as tf_debug
import keras
keras.backend.set_session(
tf_debug.TensorBoardDebugWrapperSession(tf.Session(), "ip-a-b-c-d:6064"))
# Define your keras model, called "model".
model.fit(...)
But I'm using tf.keras. So I tried the above with from tensorflow import keras instead of import keras, and that fails (in TF 2.0.0 and TF 2.1.0 and tf-nightly) with:
AttributeError: module 'tensorflow.python.keras.api._v2.keras.backend' has no attribute 'set_session'
Looks like set_session was marked compat.v1 already in Tensorflow 2.0.0: https://github.com/tensorflow/tensorflow/commit/86ac0d0a377d5b89a97c9c468a31b6506c9a7209
So I didn't find any instructions anywhere for using the Tensorboard debugger view with a tf.keras model.fit scenario in Tensorflow 2.0.0 up.
Is that not implemented at all, or the setup just not documented?
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.
Assessment
This issue has not been assessed yet.