Skip to main content
added 253 characters in body
Source Link
VincFort
  • 1.2k
  • 12
  • 32

You can use the following command to reshape to a 200x200x1 array.

data = data.reshape(-1,200,200,1)

You can also transform your (n_samples,200,200,1) shaped data into a dataset and batch it. It should fix your dimension problem.

You can do that by using the following command: tf.data.Dataset.from_tensor_slices((inputs,outputs)).batch(BATCHSIZE)

You can use the following command to reshape to a 200x200x1 array.

data = data.reshape(-1,200,200,1)

You can use the following command to reshape to a 200x200x1 array.

data = data.reshape(-1,200,200,1)

You can also transform your (n_samples,200,200,1) shaped data into a dataset and batch it. It should fix your dimension problem.

You can do that by using the following command: tf.data.Dataset.from_tensor_slices((inputs,outputs)).batch(BATCHSIZE)

Rollback to Revision 1
Source Link
VincFort
  • 1.2k
  • 12
  • 32

You can transform your data into a dataset and batch it. It should fix your dimension problem.

You can do that by usinguse the following command: tf.data.Dataset.from_tensor_slices((inputs,outputs)) to reshape to a 200x200x1 array.batch(BATCHSIZE)

data = data.reshape(-1,200,200,1)

You can transform your data into a dataset and batch it. It should fix your dimension problem.

You can do that by using the following command: tf.data.Dataset.from_tensor_slices((inputs,outputs)).batch(BATCHSIZE)

You can use the following command to reshape to a 200x200x1 array.

data = data.reshape(-1,200,200,1)
added 113 characters in body
Source Link
VincFort
  • 1.2k
  • 12
  • 32

You can usetransform your data into a dataset and batch it. It should fix your dimension problem.

You can do that by using the following command to reshape to a 200x200x1 array: tf.data.Dataset.from_tensor_slices((inputs,outputs)).batch(BATCHSIZE)

data = data.reshape(-1,200,200,1)

You can use the following command to reshape to a 200x200x1 array.

data = data.reshape(-1,200,200,1)

You can transform your data into a dataset and batch it. It should fix your dimension problem.

You can do that by using the following command: tf.data.Dataset.from_tensor_slices((inputs,outputs)).batch(BATCHSIZE)

Source Link
VincFort
  • 1.2k
  • 12
  • 32
Loading