Skip to content
This repository has been archived by the owner on Jan 1, 2021. It is now read-only.

Can not convert a BatchDataset into a Tensor or Operation #134

Open
Ruchit1395 opened this issue Sep 3, 2018 · 1 comment
Open

Can not convert a BatchDataset into a Tensor or Operation #134

Ruchit1395 opened this issue Sep 3, 2018 · 1 comment

Comments

@Ruchit1395
Copy link

while I am trying to run this code, I am not able to perform self.img = tf.reshape(img, [-1,28,28,1]). I am getting this error -

TypeError: Fetch argument <BatchDataset shapes: ((?, 28, 28), (?, 10)), types: (tf.float32, tf.float64)> has invalid type <class 'tensorflow.python.data.ops.dataset_ops.BatchDataset'>, must be a string or Tensor. (Can not convert a BatchDataset into a Tensor or Operation.)

@rjurney
Copy link

rjurney commented Oct 9, 2020

I am here too. Once you have a BatchDataset it is like you're in an API ghetto.

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

No branches or pull requests

2 participants