Open foxik opened 10 months ago
I think under the hood, pytorch tensorboard API also forward the numpy value to the tf.summary API. I think the current.
Does the current Tensorboard callback raise any error at the moment? (or it just need a extra dependency for TF)
I think under the hood, pytorch tensorboard API also forward the numpy value to the tf.summary API. I think the current.
No, it does not -- PyTorch Tensorboard API works without the tensorflow
package installed (only tensorboard
package needs to be installed).
Does the current Tensorboard callback raise any error at the moment? (or it just need a extra dependency for TF)
With PyTorch Keras backend, when tensorflow
dependency installed, the keras.callbacks.TensorBoard
does work.
So the whole issue is about allowing keras.callbacks.TensorBoard
to work without the tensorflow
dependency when PyTorch backend is used.
Hello, is there a plan to implement this feature soon?
Hi all,
even with PyTorch backend,
keras.callbacks.TensorBoard
usestensorflow.summary
to generate the Tensorboard logs, which can be inconvenient when only PyTorch is installed.However, PyTorch has a module
torch.data.tensorboard
capable of generating Tensorboard logs. As a very simple PoC, I put together the following simple callback:which works fine with Keras 3.
I assume the most convenient way would be to support this
torch.utils.tensorboard
"backend" inkeras.callbacks.TensorBoard
directly (with some of the features disabled, like profiling and probablywrite_graph
, ...) whentorch
Keras backend is active.I would find such an update to
keras.callbacks.TensorBoard
useful, but I am not volunteering to implement it :thinking: