Code: Alles auswählen
bn = tf.keras.layers.BatchNormalization(axis =2) # axis=0; axis=1
arr = np.arange(100, step = 10, dtype= np.float32)
arr = arr.reshape(2,-1,1)
output = bn(arr)
output
Code: Alles auswählen
bn = tf.keras.layers.BatchNormalization(axis =2) # axis=0; axis=1
arr = np.arange(100, step = 10, dtype= np.float32)
arr = arr.reshape(2,-1,1)
output = bn(arr)
output