How can I reshape the unsupported Keras layer?

1 Ansicht (letzte 30 Tage)
Jia Lian Gan
Jia Lian Gan am 5 Nov. 2020
Beantwortet: Shraddha Jain am 13 Nov. 2020
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.

Antworten (1)

Shraddha Jain
Shraddha Jain am 13 Nov. 2020
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)

Kategorien

Mehr zu Deep Learning Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by