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

Use TB protos where appropriate #1678

Merged
merged 5 commits into from
Dec 12, 2018
Merged

Conversation

stephanwlee
Copy link
Contributor

TensorFlow is no longer exposing Python binding for proto definition.
TensorBoard has decided to copy all the required proto definitions over
and use it where possible.

We still rely on TensorFlow version of the proto for:

  • TB summary v1 APIs. e.g., *.summary.pb()
  • places where we use pywrap_tensorflow.EventsWriter

This commit mostly made mechanical changes for anything that
uses tensor_util.make_tensor_proto and anything that matches
tf\.(Event|Summary).

@stephanwlee
Copy link
Contributor Author

@nfelt I am not sure if I like the pattern of introducing two create_summary_metadatas just for TF proto vs. TB proto.

TensorFlow is no longer exposing Python binding for proto definition.
TensorBoard has decided to copy all the required proto definitions over
and use it where possible.

We still rely on TensorFlow version of the proto for:
- TB summary v1 APIs. e.g., *.summary.pb()
- places where we use pywrap_tensorflow.EventsWriter

This commit mostly made mechanical changes for anything that
uses `tensor_util.make_tensor_proto` and anything that matches
`tf\.(Event|Summary)`.
tensorboard/util/test_util.py Outdated Show resolved Hide resolved
@stephanwlee stephanwlee merged commit 4564db4 into tensorflow:master Dec 12, 2018
stephanwlee added a commit to stephanwlee/tensorboard that referenced this pull request Dec 22, 2018
Now that TensorBoard hosts all proto definitions required to run it, we
use the TensorBoard version of protos. tensorflow#1678 has missed few usages of
SessionLog.[CONSTANT] and this change fixes that.
stephanwlee added a commit that referenced this pull request Dec 26, 2018
Now that TensorBoard hosts all proto definitions required to run it, we
use the TensorBoard version of protos. #1678 has missed few usages of
constants of proto, SessionLog.[NAME], and this change fixes that.

Related: #1718.
stephanwlee added a commit to stephanwlee/tensorboard that referenced this pull request Dec 26, 2018
We are deprecating usage of tf.proto but have missed few usage of
RunMetadata in tensorflow#1678.

Confirmed that this is not causing regression by:
1. running TB with variety of event files
2. reading the code: change in graphs_plugin is innocuous as we are
   serializing proto into string.

Do note that this changes output of event_accumulators#RunMetadata but
we do not seem to be using it at least in our repo.
stephanwlee added a commit that referenced this pull request Dec 27, 2018
We are deprecating usage of tf.proto but have missed few usage of
RunMetadata in #1678.

Confirmed that this is not causing regression by:
1. running TB with variety of event files
2. reading the code: change in graphs_plugin is innocuous as we are
   serializing proto into string.

Do note that this changes output of event_accumulators#RunMetadata but
we do not seem to be using it at least in our repo.
@stephanwlee stephanwlee deleted the util_shim4 branch December 28, 2018 19:13
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

Successfully merging this pull request may close these issues.

2 participants