How can I reshape the unsupported Keras layer?

조회 수: 2 (최근 30일)
Jia Lian Gan
Jia Lian Gan 2020년 11월 5일
답변: Shraddha Jain 2020년 11월 13일
ans =
struct with fields:
name: 'reshape_1'
trainable: 1
dtype: 'float32'
target_shape: [3×1 double]
ans =
struct with fields:
name: 'reshape_to_7'
trainable: 1
dtype: 'float32'
target_shape: 7
These are the layer structure.

답변 (1개)

Shraddha Jain
Shraddha Jain 2020년 11월 13일
Hi Jia,
There is no reshape method in Deep Learning Toolbox as of now. As a workaround, you can reshape a 3-neuron layer to a 7-neuron layer using the method fullyConnectedLayer as,
layer = fullyConnectedLayer(7)

카테고리

Help CenterFile Exchange에서 Image Data Workflows에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by