Reshape层用来将输入shape转换为特定的shape
参数
Reshape((target_shape))
target_shape是目标shape,不包含样本数目batchsize
输入shape
任意,但输入的shape必须固定。当使用该层为模型首层时,需要指定input_shape
参数
输出shape
(batchsize,(target_shape))
例子
a = input(batch,window,dim)
a = Reshape((dim, window))(a)
#(batch,dim,window)