Skip to content

Tag: tensorflow

Why tensor shape is difference when i use tf.print?

I made simple dataset like below. And I slice it by using from_tensor_slices: (I don’t know exact role of tensor slice function…) when I print dataset using print function, it shows like below: and when I print it using for loop it show like below: Here is question: In my idea, tensor shape should…

Unknown image file format. One of JPEG, PNG, GIF, BMP required

I built a simple CNN model and it raised below errors: The code I wrote is quite simple and standard. Most of them are just directly copied from the official website. It raised this error before the first epoch finish. I am pretty sure that the images are all png files. The train folder does not contain anyth…