Question about fullyConnectedLayer's configurations/settings

2 ビュー (過去 30 日間)
Eva
Eva 2023 年 8 月 5 日
コメント済み: Eva 2023 年 8 月 25 日
I want to verify the following:
I am working in a situation, where within the fullyconnectedLayer, I have a part of the set of weights, that I do NOT want updated during the back propagation. (I want to be able to elect which rows I want updated and others I don't want updated) I want the weights to be used in the predict/forward calculation, but NOT to be updated in the back propagation.
In this situation, I have determined, that there exists no settings within MATLAB's fullyConnectedLayer, the ability to go and set any value, so that the layer only updates on the rows of the weights selected. As a result of this, I have gone off and created my own Custom Fully Connected Layer to accomplish this.
I wanted to ask somone at MATLAB, if my understanding of the configurations/settings of 'fullyConnectedLayer' is indeed true ? There is no way to get the fullyConnectedLayer to operate, per the description I have provided above ?
  1 件のコメント
Eva
Eva 2023 年 8 月 5 日
I wanted to ask to verify this , because I am having some suboptimal performance in my Custom Fully Connected Layer that I am having a difficult time to mitigate.
If I could go back and use your fullyConnectedLayer, but able to use it in the way I need to, this would be preferred.

サインインしてコメントする。

採用された回答

Siraj
Siraj 2023 年 8 月 23 日
Hii! It is my understanding that you have a fullyConnectedLayer which has a weight matrix of dimensions Output size X Input Size. In the training phase of the network all the values of this weight matrix get updated, while you want some rows to remain unaltered.
I investigated but was not able to see any configuration with which we can freeze some rows of this weight matrix such that values in these rows remain unaltered during the training of the network.
Please refer to the documentation of fullyConnectedLayer for more details.
  1 件のコメント
Eva
Eva 2023 年 8 月 25 日
Thank you Siraj, for taking the time to look into this question!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSequence and Numeric Feature Data Workflows についてさらに検索

製品


リリース

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by