tensorflow / tensorflow/tensorboard
Tensorboard draw a wrong graph when I use `tf.layers.conv2d_transpose` without pass the name parameter.
Open
Nobody has claimed this yet.
plugin:graph
type:bug
- Dominant language
- TypeScript
- Stars
- 7.2k
- Forks
- 1.7k
- Avg merge
- 4d 22h
- Merged PRs (30d)
- 1
Description
Tensorboard draw a wrong graph when I use tf.layers.conv2d_transpose without pass the name parameter.
Here is my code:
import tensorflow as tf
x = tf.placeholder(tf.float32, shape=(None, None, None, 1), name="Input")
x = tf.layers.conv2d_transpose(x, kernel_size=2, filters=10)
x = tf.layers.conv2d_transpose(x, kernel_size=2, filters=10)
with tf.Session() as sess:
sess.run(tf.global_variables_initializer())
summary_writer = tf.summary.FileWriter("tensorflow_logs/graph", graph=tf.get_default_graph())
It will draw a right graph when I fill the name parameter in the two tf.layers.conv2d_transpose.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the Python snippet using two tf.layers.conv2d_transpose calls and inspect the resulting TensorBoard graph. Compare the graph with and without explicit name parameters, then trace the graph visualization entry point to identify the discrepancy. Done means both versions render the correct graph structure.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- data-visualization
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100