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.

AttributeError: module 'tensorflow' has no attribute 'make_tensor_proto

See original GitHub issue

Hi there, I have tensorflow 1.0.0 and tensorboard 0.1.8.

Note that I have to use tf 1.0.0 since I need it to run on some shared hardware

This is the output of my --inspect command

python3 -m tensorboard.main --logdir=checkpoints/StructuredEmbeddingtrain_summaries/ --inspect
======================================================================
Processing event files... (this can take a few minutes)
======================================================================

Found event files in:
checkpoints/StructuredEmbeddingtrain_summaries/

These tags are in checkpoints/StructuredEmbeddingtrain_summaries/:
audio -
histograms
   individual_loss
   neg_score_dist
   pos_score_dist
images -
scalars
   objective_1
   score_loss
tensor -
======================================================================

Event statistics for checkpoints/StructuredEmbeddingtrain_summaries/:
audio -
graph
   first_step           0
   last_step            0
   max_step             0
   min_step             0
   num_steps            1
   outoforder_steps     []
histograms
   first_step           0
   last_step            0
   max_step             0
   min_step             0
   num_steps            1
   outoforder_steps     []
images -
scalars
   first_step           0
   last_step            0
   max_step             0
   min_step             0
   num_steps            1
   outoforder_steps     []
sessionlog:checkpoint -
sessionlog:start -
sessionlog:stop -
tensor -
======================================================================

However, when I run Tensorboard to visualize the scalars I get the following error and the notice that no data was found. Note that I can visualize the graph and projections!:

TensorBoard 0.1.8 at http://jc-10:6006 (Press CTRL+C to quit)
Exception in thread Reloader:
Traceback (most recent call last):
  File "/usr/lib/python3.5/threading.py", line 914, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.5/threading.py", line 862, in run
    self._target(*self._args, **self._kwargs)
  File "/home/ml/zahmed8/.local/lib/python3.5/site-packages/tensorboard/backend/application.py", line 327, in _reload_forever
    reload_multiplexer(multiplexer, path_to_run)
  File "/home/ml/zahmed8/.local/lib/python3.5/site-packages/tensorboard/backend/application.py", line 301, in reload_multiplexer
    multiplexer.Reload()
  File "/home/ml/zahmed8/.local/lib/python3.5/site-packages/tensorboard/backend/event_processing/plugin_event_multiplexer.py", line 195, in Reload
    accumulator.Reload()
  File "/home/ml/zahmed8/.local/lib/python3.5/site-packages/tensorboard/backend/event_processing/plugin_event_accumulator.py", line 189, in Reload
    self._ProcessEvent(event)
  File "/home/ml/zahmed8/.local/lib/python3.5/site-packages/tensorboard/backend/event_processing/plugin_event_accumulator.py", line 335, in _ProcessEvent
    value = data_compat.migrate_value(value)
  File "/home/ml/zahmed8/.local/lib/python3.5/site-packages/tensorboard/data_compat.py", line 57, in migrate_value
    return handler(value) if handler else value
  File "/home/ml/zahmed8/.local/lib/python3.5/site-packages/tensorboard/data_compat.py", line 106, in _migrate_scalar_value
    tensor_proto = tf.make_tensor_proto(scalar_value)
AttributeError: module 'tensorflow' has no attribute 'make_tensor_proto'

image

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
jartcommented, Nov 16, 2017

Try reinstalling the tensorflow 1.0 pip package. Back then, tensorboard came included and hadn’t been broken out into a separate pip package.

0reactions
meenaparamcommented, Mar 23, 2018

Downgrading tensorflow from 1.1.0 to 1.0.0 also fixed this issue for me.

Read more comments on GitHub >

github_iconTop Results From Across the Web

tf.make_tensor_proto | TensorFlow v2.11.0
A TensorProto . Depending on the type, it may contain data in the "tensor_content" attribute, which is not directly useful to Python programs....
Read more >
module 'tensorflow' has no attribute 'python' error after update
I worked with tf 2.3, after an update to 2.6 got the following error. AttributeError: module 'tensorflow' has no attribute 'python'.
Read more >
AttributeError: module 'tensorflow' has no attribute 'placeholder'
Find professional answers about "AttributeError: module 'tensorflow' has no attribute 'placeholder'" in 365 Data Science's Q&A Hub.
Read more >
AttributeError: module 'tensorflow' has no attribute ... - YouTube
AttributeError : module ' tensorflow ' has no attribute 'InteractiveSession' ... AttributeError Traceback (most recent call last) ...
Read more >
module 'tensorflow' has no attribute 'initialize_all_variables'
AttributeError Traceback (most recent call last)ipython-input-11-8607f600b55c in module () 34 35 # Initialize state to ini...
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