https://keras.io/layers/core/#reshape
keras.layers.Reshape(target_shape)
- 将输出调整为特定形状。
- 第一层时需要
input_shape()
确定输入形状。
示例:
# as first layer in a Sequential model
model = Sequential()
model.add(Reshape((3, 4), input_shape=(
https://keras.io/layers/core/#reshape
keras.layers.Reshape(target_shape)
input_shape()
确定输入形状。# as first layer in a Sequential model
model = Sequential()
model.add(Reshape((3, 4), input_shape=(