In [1]:
import keras.backend as K
In [2]:
'TensorFlow version: ' + K.tf.__version__
Out[2]:
In [3]:
K.eval(K.concatenate([K.random_uniform(shape=(3, 4)),
K.random_uniform(shape=(3, 4))], axis=0)).shape
Out[3]:
In [4]:
K.eval(K.concatenate([K.random_uniform(shape=(3, 4)),
K.random_uniform(shape=(3, 4))], axis=1)).shape
Out[4]:
In [5]:
K.eval(K.stack([K.random_uniform(shape=(3, 4)),
K.random_uniform(shape=(3, 4))], axis=0)).shape
Out[5]:
In [6]:
K.eval(K.stack([K.random_uniform(shape=(3, 4)),
K.random_uniform(shape=(3, 4))], axis=1)).shape
Out[6]:
In [7]:
K.eval(K.stack([K.random_uniform(shape=(3, 4)),
K.random_uniform(shape=(3, 4))], axis=2)).shape
Out[7]: