Skip to content
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

ImportError: cannot import name bayesflow #10811

Closed
DataMining-ClusteringAnalysis opened this issue Jun 19, 2017 · 5 comments · Fixed by #64236
Closed

ImportError: cannot import name bayesflow #10811

DataMining-ClusteringAnalysis opened this issue Jun 19, 2017 · 5 comments · Fixed by #64236
Labels
stat:awaiting response Status - Awaiting response from author

Comments

@DataMining-ClusteringAnalysis
Copy link

**I am trying to use the command:
cell = tf.contrib.rnn.BasicLSTMCell(state_size, state_is_tuple=True)

However, it keeps telling me: ImportError: cannot import name bayesflow **. Detail is shown as below:

ImportError Traceback (most recent call last)
in ()
4 labels_series = [tf.reshape(x, [batch_size,1]) for x in labels_series]
5 # Forward passes
----> 6 cell = tf.contrib.rnn.BasicLSTMCell(state_size)
7 states_series, current_state = tf.contrib.rnn(cell, inputs_series, init_state)
8

//anaconda/lib/python2.7/site-packages/tensorflow/python/util/lazy_loader.pyc in getattr(self, item)
51
52 def getattr(self, item):
---> 53 module = self._load()
54 return getattr(module, item)
55

//anaconda/lib/python2.7/site-packages/tensorflow/python/util/lazy_loader.pyc in _load(self)
40 def _load(self):
41 # Import the target module and insert it into the parent's namespace
---> 42 module = importlib.import_module(self.name)
43 self._parent_module_globals[self._local_name] = module
44

//anaconda/lib/python2.7/importlib/init.pyc in import_module(name, package)
35 level += 1
36 name = _resolve_name(name[level:], package, level)
---> 37 import(name)
38 return sys.modules[name]

//anaconda/lib/python2.7/site-packages/tensorflow/contrib/init.py in ()
20
21 # Add projects here, they will show up under tf.contrib.
---> 22 from tensorflow.contrib import bayesflow
23 from tensorflow.contrib import cloud
24 from tensorflow.contrib import compiler

ImportError: cannot import name bayesflow

Anybody know how to fix it? Much appreciated in advance!

Xin

@tatatodd
Copy link
Contributor

Please resubmit and pay attention to the issue template (https://github.com/tensorflow/tensorflow/issues/new) . Please provide all the information it asks (e.g. TF version, etc). Thank you.

@tatatodd tatatodd added the stat:awaiting response Status - Awaiting response from author label Jun 20, 2017
@pbamotra
Copy link

Update dask
conda update dask

@Faur
Copy link

Faur commented Aug 18, 2017

Fixed it for me

@tensorflowbutler
Copy link
Member

This issue is automatically closed due to lack of activity. Please re-open if this is still an issue for you. Thanks!

@thanhnguyentang
Copy link

@pbamotra That does not work for me.

copybara-service bot pushed a commit that referenced this issue Mar 21, 2024
…n GPU Compiler

Imported from GitHub PR openxla/xla#10811

Restores individual ReshapeDecomposer and LayoutNormalization passes in the GPU compiler previously removed in #9852 and fixes failures in cudnn_norm_rewriter_test.cc.
Copybara import of the project:

--
52065712a6bd4f6bb874575d82b4d99b8f2d16dd by Philipp Hack <phack@nvidia.com>:

Restore ReshapeDecomposer and LayoutNormalization passes.

Merging this change closes #10811

FUTURE_COPYBARA_INTEGRATE_REVIEW=openxla/xla#10811 from philipphack:u_layer_reshape_decomposer_xla 52065712a6bd4f6bb874575d82b4d99b8f2d16dd
PiperOrigin-RevId: 617990157
copybara-service bot pushed a commit that referenced this issue Mar 22, 2024
…n GPU Compiler

Imported from GitHub PR openxla/xla#10811

Restores individual ReshapeDecomposer and LayoutNormalization passes in the GPU compiler previously removed in #9852 and fixes failures in cudnn_norm_rewriter_test.cc.
Copybara import of the project:

--
52065712a6bd4f6bb874575d82b4d99b8f2d16dd by Philipp Hack <phack@nvidia.com>:

Restore ReshapeDecomposer and LayoutNormalization passes.

Merging this change closes #10811

FUTURE_COPYBARA_INTEGRATE_REVIEW=openxla/xla#10811 from philipphack:u_layer_reshape_decomposer_xla 52065712a6bd4f6bb874575d82b4d99b8f2d16dd
PiperOrigin-RevId: 617990157
copybara-service bot pushed a commit that referenced this issue Mar 22, 2024
…n GPU Compiler

Imported from GitHub PR openxla/xla#10811

Restores individual ReshapeDecomposer and LayoutNormalization passes in the GPU compiler previously removed in #9852 and fixes failures in cudnn_norm_rewriter_test.cc.
Copybara import of the project:

--
52065712a6bd4f6bb874575d82b4d99b8f2d16dd by Philipp Hack <phack@nvidia.com>:

Restore ReshapeDecomposer and LayoutNormalization passes.

Merging this change closes #10811

FUTURE_COPYBARA_INTEGRATE_REVIEW=openxla/xla#10811 from philipphack:u_layer_reshape_decomposer_xla 52065712a6bd4f6bb874575d82b4d99b8f2d16dd
PiperOrigin-RevId: 617990157
copybara-service bot pushed a commit that referenced this issue Mar 22, 2024
…n GPU Compiler

Imported from GitHub PR openxla/xla#10811

Restores individual ReshapeDecomposer and LayoutNormalization passes in the GPU compiler previously removed in #9852 and fixes failures in cudnn_norm_rewriter_test.cc.
Copybara import of the project:

--
52065712a6bd4f6bb874575d82b4d99b8f2d16dd by Philipp Hack <phack@nvidia.com>:

Restore ReshapeDecomposer and LayoutNormalization passes.

Merging this change closes #10811

FUTURE_COPYBARA_INTEGRATE_REVIEW=openxla/xla#10811 from philipphack:u_layer_reshape_decomposer_xla 52065712a6bd4f6bb874575d82b4d99b8f2d16dd
PiperOrigin-RevId: 617990157
copybara-service bot pushed a commit that referenced this issue Mar 22, 2024
…n GPU Compiler

Imported from GitHub PR openxla/xla#10811

Restores individual ReshapeDecomposer and LayoutNormalization passes in the GPU compiler previously removed in #9852 and fixes failures in cudnn_norm_rewriter_test.cc.
Copybara import of the project:

--
52065712a6bd4f6bb874575d82b4d99b8f2d16dd by Philipp Hack <phack@nvidia.com>:

Restore ReshapeDecomposer and LayoutNormalization passes.

Merging this change closes #10811

FUTURE_COPYBARA_INTEGRATE_REVIEW=openxla/xla#10811 from philipphack:u_layer_reshape_decomposer_xla 52065712a6bd4f6bb874575d82b4d99b8f2d16dd
PiperOrigin-RevId: 617990157
copybara-service bot pushed a commit that referenced this issue Mar 22, 2024
…n GPU Compiler

Imported from GitHub PR openxla/xla#10811

Restores individual ReshapeDecomposer and LayoutNormalization passes in the GPU compiler previously removed in #9852 and fixes failures in cudnn_norm_rewriter_test.cc.
Copybara import of the project:

--
52065712a6bd4f6bb874575d82b4d99b8f2d16dd by Philipp Hack <phack@nvidia.com>:

Restore ReshapeDecomposer and LayoutNormalization passes.

Merging this change closes #10811

PiperOrigin-RevId: 618059598
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stat:awaiting response Status - Awaiting response from author
Projects
None yet
6 participants