-
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
'tensorboard.plugins.projector' has no attribute 'ProjectorConfig' #926
Comments
Hmm, importing
I wonder why not. I wonder what happens if you install tensorboard nightly ( |
Just tried and got the exact same error. |
Upon further investigation, it looks like the actual contents of our The projector plugin is pretty much the only non-empty one aside from the top-level one, which is specifically listed in its Bazel rule and does get included. I think if we start explicitly listing the other ones that should fix this issue. |
For now, a workaround should be to explicitly import from projector_config_pb2 as in from tensorboard.plugins.projector.projector_config_pb2 import ProjectorConfig
config = ProjectorConfig() |
Though the function from tensorflow.contrib.tensorboard.plugins import projector Are there any possible issues using the |
Oh, yes, you're right. I believe that will work for now but it will be safer to import from |
Fix #926 by explicitly including the projector module API, i.e. `import tensorboard.plugins.projector`, which provides access to `visualize_embeddings`, when building the pip package.
Fix tensorflow#926 by explicitly including the projector module API, i.e. `import tensorboard.plugins.projector`, which provides access to `visualize_embeddings`, when building the pip package.
Fix #926 by explicitly including the projector module API, i.e. `import tensorboard.plugins.projector`, which provides access to `visualize_embeddings`, when building the pip package.
I checked with the latest package ( |
Sure. This should also be fixed in 1.5.1 (just released yesterday) and will be in the upcoming 1.6.0 as well. |
Referring to the test file:
https://github.com/tensorflow/tensorboard/blob/1.5/tensorboard/plugins/projector/projector_api_test.py
If
projector
is imported as:accessing the
ProjectorConfig()
raises:AttributeError: module 'tensorboard.plugins.projector' has no attribute 'ProjectorConfig'
It works fine if
projector
is imported fromtf.contrib
:The text was updated successfully, but these errors were encountered: