-
Notifications
You must be signed in to change notification settings - Fork 195
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
What is the version numver of tensorfow and Numpy used in this code? #2
Comments
I used numpy==1.15.0, and tensorflow==1.8.0. If you still have errors, please attach the error message. Thank you! |
I tested it again with my own dataset, and it also returned and error as below:
I don't know how to fix it, can you check this?
Thank you!
--------------------------------------------------------------------------------------------------------
Traceback (most recent call last):
File "train.py", line 75, in <module>
_, step, loss = sess.run([model.update, model.global_step, model.loss], feed_dict=train_feed_dict)
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/client/session.py", line 900, in run
run_metadata_ptr)
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/client/session.py", line 1104, in _run
np_val = np.asarray(subfeed_val, dtype=subfeed_dtype)
File "/usr/local/lib/python3.5/dist-packages/numpy/core/numeric.py", line 501, in asarray
return array(a, dtype, copy=False, order=order)
ValueError: setting an array element with a sequence.
|
I can't reproduce this error so I'm not sure what is the problem, but the error message is saying that you are trying to create an array from a list that isn't shaped like a multi-dimensional array. For example, numpy.array([[1,2], [2, 3, 4]]). Could you please clone the repository again and try below?
If it still happens, please let me know. |
What is the version numver of tensorfow and numpy used in this code? I got a lot errors when I test the code?
Thanks a lot!
The text was updated successfully, but these errors were encountered: