Skip to content

Instantly share code, notes, and snippets.

@tanviredu
Created August 2, 2020 14:09
Show Gist options
  • Save tanviredu/768d6113e35c1db32b71f109fa25f83a to your computer and use it in GitHub Desktop.
Save tanviredu/768d6113e35c1db32b71f109fa25f83a to your computer and use it in GitHub Desktop.
## making 4 dimension
img_rows=x_train[0].shape[0]
img_cols=x_test[0].shape[1]
X_train=x_train.reshape(x_train.shape[0],img_rows,img_cols,1)
X_test=x_test.reshape(x_test.shape[0],img_rows,img_cols,1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment