フィルターのクリア

How can I reshape the unsupported Keras layer?

1 回表示 (過去 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 Center および File ExchangeImage Data Workflows についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by