-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Consider re-exporting FileWriter and merge_all from tensorboard.summary
#569
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
Comments
I'm wholly in support of this. We need the FileWriter to write the Another thing this gives us is much more flexibility for adding new features. E.g. I think we should add additional run-level metadata, like run descriptions and hyperparameters. To write this metadata, we will probably need to reify an explicit "Run" construct which might need a special run-aware FileWriter, or we might add some APIs to the FileWriter to support Runs. It's easier to do that if the APIs are sourced from our codebase rather than the TensorFlow codebase. I think we probably should have Summary and Event be exposed by TB api as well, but while we're redesigning the backend, we might want to leave ourselves the option of deciding what to export for later, since it's easy to add stuff to the api and hard to take it out. (What if we wanted to define our own Summary and Event protos which extend or diverge from the TF ones? Would that even be feasible?) |
Good point.
Absolutely; this is the right call.
It probably would be feasible. Extending would be easy. If we wanted to diverge, we could add a function (Still happy to hear input from others; if there’s no dissent, I’ll implement this when I have some time.) |
That sounds exciting. I support as well for those reasons. Here's the We can either keep |
What are the advantages of exposing FileWriter = tf.summary.FileWriter or class FileWriter(tf.summary.FileWriter):
pass ? |
The approach I took in the linked PR is nice, I think, in that it ensures API documentation is available in this repository (someone using TB without TF should not need to go to the tf project to get documentation on TB's apis). It also gives us good flexibility if we want to extend / modify behavior later. |
@jart - curious about your thoughts on |
I wouldn't be opposed to doing this. We haven't set up a documentation website yet. But it would be nice to know if it would be smart enough to pull in the docstrings from TensorFlow's codebase, and then pretend that the class is defined in this codebase. Or if we'd have to write a shell method where the docstring basically gives them a link to https://www.tensorflow.org/api_docs/python/tf/summary/FileWriter to learn more. Also note that we're probably going to have a |
No longer needed as of TF 2.0. |
Suggestion to build on top of #561.
Here is a sample TensorBoard program today, on TF==1.3.0 and TB==0.1.7:
On the marked lines, we must use
tf.summary
instead oftensorboard.summary
. This isn't too ugly, but I can imagine it being confusing from beginners. It's easy to explain what the difference betweentf.summary
andtensorboard.summary
is, but ideally we shouldn't have to.If we export
in
tensorboard.summary
, then users could use thetensorboard.summary
module as their one-stop shop for all things summary-related, which seems desirable.I tentatively suggest that we keep the
Summary
andEvent
protos intf.summary
itself, but could easily be persuaded otherwise.open to input @dandelionmane @jart @chihuahua
The text was updated successfully, but these errors were encountered: