import os
import tensorflow as tf
a = tf.random.normal([4,28,28,3])
b = tf.reshape(a,[4,784,3]).shape
c = tf.reshape(a,[4,-1,3]).shape
d = tf.reshape(a,[4,-784*3]).shape
e = tf.reshape(a,[4,-1]).shape
f = tf.reshape(a,[4,-1],[4,28,28,3]).shape
g = tf.reshape(a,[4,-1],[4,14,56,3]).shape
h = tf.reshape(a,[4,-1],[4,1,784,3]).shape
a = tf.random.normal((4,3,2,1))
a.shape
tf.transpose(a).shape
tf.transpose(a,perm=[0,1,3,2]).shape
tf.transpose(a,[0,1,3,2]).shape
a = tf.random.normal([4,35,8])
tf.expand_dims(a,axis = 0).shape
tf.expand_dims(a,axis = 4).shape
tf.squeeze(tf.zeros([1,2,1,1,3])).shape
tf.squeeze(a,axis = 0).shape