-
Notifications
You must be signed in to change notification settings - Fork 74k
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
2 bugs in training/input.py #480
Comments
I have a fix out for the first issue: feel free to send us a PR for the second one! |
@vrv: If the actual bug is fixed, should we close this? I don't think it's a TensorFlow bug that |
I think it's fixed. |
I just met the same issue (2) but about using tf.train.batch_join() of the TF' version(0.11.0rc1). As oliverfunk said, i put a comma at the end of the tuple and seems work. Thanks! My code is like as below: example_list = [ |
…pstream-deven-misc-190530 renaming dnn_pooling_gpu.[h,cc] back to cudnn_pooling_gpu.[h,cc] and other changes
In the
_dtype()
method in the training/input.py file, the following code for TypeError:should be:
Also, when using the
tf.train.shuffle_batch_join()
method, you are suppose to pass a list of tuples of tensors, but if you pass a list of tuple and each tuple only contains one item, python will ignore the tuples and simply make it into a list. Thus, when the _flatten method in training/inputs.py is called, aTypeError: 'Tensor' object is not iterable
is thrown. I suppose it's not necessarily a bug as one should know if you want to pass a tuple containing just one item, you must put a comma at the end of the tuple, but it may still may cause confusion.Instead, _flatten could be:
The text was updated successfully, but these errors were encountered: