I have a batch of 10 images, which gives the size (10, 224, 224, 3)
, I want to create a larger image of size (2240, 224, 3)
.
import tensorflow as tf
x = tf.random.uniform(minval=0, maxval=1, shape=(100, 224, 224, 3), dtype=tf.float32)
ds = tf.data.Dataset.from_tensor_slices(x).batch(10)
My desired output:
TensorShape([2240, 224, 3])
If I use tf.concatenate
I get
ValueError: Cannot infer num from shape (None, 224, 224, 3)