Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plot TFRS model architecture #711

Open
lpiscusc opened this issue Mar 24, 2024 · 1 comment
Open

Plot TFRS model architecture #711

lpiscusc opened this issue Mar 24, 2024 · 1 comment

Comments

@lpiscusc
Copy link

I've been using tf.keras.utils.plot_model() to visualize Keras model architectures, which has been very helpful. However, I'm working with TFRS, and this function doesn't seem to work in this case. Is there an alternative way to visualize the TFRS model architecture?

Thanks

@Chm-vinicius
Copy link

Try tensorboard:

import datetime
%load_ext tensorboard

logdir = "logs/fit" + datetime.date.today().strftime("%Y%m%d-%H%M%S")
tensorboard_callback = tf.keras.callbacks.TensorBoard(log_dir=logdir)

final_model.fit(train.batch(500), epochs=10, callbacks=[tensorboard_callback])

See more on https://www.tensorflow.org/tensorboard/graphs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants