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

tf.data.Dataset.from_tensor_slices returns empty tensors #1

Open
Ashutosh1995 opened this issue Mar 26, 2019 · 0 comments
Open

tf.data.Dataset.from_tensor_slices returns empty tensors #1

Ashutosh1995 opened this issue Mar 26, 2019 · 0 comments

Comments

@Ashutosh1995
Copy link

I am running the code on cityscapes dataset which has image, labels but not weights. I am passing a list of ones as argument to weight list in read_file function. But in this line of train_batch function, train_data = tf.data.Dataset.from_tensor_slices((image_list, label_list, weight_list)), I get this as output_shapes:
(TensorShape([Dimension(1), Dimension(None), Dimension(None), Dimension(None)]), TensorShape([Dimension(1), Dimension(None), Dimension(None), Dimension(None)]), TensorShape([Dimension(1), Dimension(None), Dimension(None), Dimension(None)]))

Can you suggest why this is happening ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant