-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Uploader: Add test for completely empty GraphDef blob. #3509
base: master
Are you sure you want to change the base?
Conversation
tensorboard/dataclass_compat_test.py
Outdated
new_event = new_events[1] | ||
tensor = tensor_util.make_ndarray(new_event.summary.value[0].tensor) | ||
new_graph_def_bytes = tensor[0] | ||
new_graph_def = graph_pb2.GraphDef.FromString(new_graph_def_bytes) | ||
self.assertProtoEquals(new_graph_def, graph_pb2.GraphDef()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a comment here to explain what these lines are doing and how they are related to the lines above?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Simplified the test (the last few lines were quite superfluous) and added comments.
No description provided.