question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TensorBoard Histogram

See original GitHub issue

Thanks so much for coming here to raise an issue. Please take a moment to ‘check’ the below boxes:

  • I’m up-to-date with the latest release:

    pip install -U talos
    
  • I’ve confirmed that my Keras model works outside of Talos.

If you still have an error, please submit complete trace and a code with:

  • output of shape for x and y e.g. (212,12)
  • Talos params dictionary
  • The Keras model wired for Talos
  • Description of extra variables in the model

You can provide the code in pastebin / gist or any other format you like.

Error Trace


  File "C:\Users\Reto\Anaconda3\envs\jass-kit\lib\site-packages\tensorflow\python\keras\engine\training.py", line 647, in _make_predict_function
    **kwargs)
  File "C:\Users\Reto\Anaconda3\envs\jass-kit\lib\site-packages\tensorflow\python\keras\backend.py", line 2942, in function
    return Function(inputs, outputs, updates=updates, **kwargs)
  File "C:\Users\Reto\Anaconda3\envs\jass-kit\lib\site-packages\tensorflow\python\keras\backend.py", line 2782, in __init__
    with ops.control_dependencies(self.outputs):
  File "C:\Users\Reto\Anaconda3\envs\jass-kit\lib\site-packages\tensorflow\python\framework\ops.py", line 4798, in control_dependencies
    return get_default_graph().control_dependencies(control_inputs)
  File "C:\Users\Reto\Anaconda3\envs\jass-kit\lib\site-packages\tensorflow\python\framework\ops.py", line 4384, in control_dependencies
    c = self.as_graph_element(c)
  File "C:\Users\Reto\Anaconda3\envs\jass-kit\lib\site-packages\tensorflow\python\framework\ops.py", line 3339, in as_graph_element
    return self._as_graph_element_locked(obj, allow_tensor, allow_operation)
  File "C:\Users\Reto\Anaconda3\envs\jass-kit\lib\site-packages\tensorflow\python\framework\ops.py", line 3418, in _as_graph_element_locked
    raise ValueError("Tensor %s is not an element of this graph." % obj)
ValueError: Tensor Tensor("dense_1/Softmax:0", shape=(?, 36), dtype=float32) is not an element of this graph.

Following Code is used:

https://gist.github.com/crzdg/3f85cc4383d6316e9d6b1bcb23b0e9c2


May be helpful:

https://stackoverflow.com/questions/46725323/keras-tensorflow-exception-while-predicting-from-multiple-threads

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
mikkokotilacommented, Nov 21, 2018

Thanks. The “…not an element of this graph” is an issue that I’m reluctant to start dealing with as there is a lot of confusion around it. Which I think is the reason why Keras is not already dealing with it. It is well known that Keras is not handling this, but it needs to be explicitly handled on tf. If Keras starts to support this in some meaningful way, the problem will go away, otherwise I’m afraid not.

What do you want to use TensorBoard for?

0reactions
mikkokotilacommented, Sep 17, 2019

Closing this as it’s not related with Talos, but for whom it may concern, generally this error is overcome (regardless of where it appears) by setting talos.Scan(...clear_session=False...).

Read more comments on GitHub >

github_iconTop Results From Across the Web

tensorboard/histograms.md at master - GitHub
The TensorBoard Histogram Dashboard displays how the distribution of some Tensor in your TensorFlow graph has changed over time.
Read more >
Understanding TensorBoard (weight) histograms
In general, histograms display the number of occurrences of a value relative to each other values. Simply speaking, if the possible values are ......
Read more >
tf.summary.histogram | TensorFlow v2.11.0
Writes a histogram to the current default summary writer, for later analysis in TensorBoard's 'Histograms' and 'Distributions' dashboards ...
Read more >
Using Tensorboard - Medium
A histogram is basically a collection of values represented by the frequency/density that the value has in the collection. On Tensorboard, they are...
Read more >
torch.utils.tensorboard — PyTorch 1.13 documentation
Scalars, images, histograms, graphs, and embedding visualizations are all supported for PyTorch models and tensors as well as Caffe2 nets and blobs.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found