This repository has been archived by the owner on Dec 29, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
What's wrong with bernoulli? #338
Comments
same problem occurred... |
Reproduced on macOS 10.14 (18A391) with Python 3.7.0 installed via Homebrew, following the instructions at https://www.tensorflow.org/install/pip — looks like I need to downgrade to 3.6?
|
My version of python was 3.6.5 and I installed tensorflow whose version was 1.0. Then I ran the test and no problem appeared. |
I have found a solution in #285 |
It's a tensorflow version problem. It was built on tensorflow==1.0.0.
to
reference: https://medium.com/@aloofness54/fix-google-seq2seq-installation-errors-4a1155b13f73 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
ERROR: seq2seq (unittest.loader._FailedTest)
ImportError: Failed to import test module: seq2seq
Traceback (most recent call last):
File "/usr/lib/python3.6/unittest/loader.py", line 153, in loadTestsFromName
module = import(module_name)
File "/content/seq2seq/seq2seq/init.py", line 26, in
from seq2seq import decoders
File "/content/seq2seq/seq2seq/decoders/init.py", line 20, in
from seq2seq.decoders.attention_decoder import *
File "/content/seq2seq/seq2seq/decoders/attention_decoder.py", line 27, in
from seq2seq.contrib.seq2seq.helper import CustomHelper
File "/content/seq2seq/seq2seq/contrib/seq2seq/helper.py", line 35, in
from tensorflow.contrib.distributions.python.ops import bernoulli
ImportError: cannot import name 'bernoulli'
Ran 1 test in 0.000s
FAILED (errors=1)
I saw similar issue here but I didn't find a good solution.
I use Google Colab.
Everything went ok till I ran pipeline_test
Python3, gpu
The text was updated successfully, but these errors were encountered: