Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error Occurs when a new layer is added #11

Open
ChunLLee opened this issue Jun 7, 2020 · 0 comments
Open

Error Occurs when a new layer is added #11

ChunLLee opened this issue Jun 7, 2020 · 0 comments

Comments

@ChunLLee
Copy link

ChunLLee commented Jun 7, 2020

Thank you very much for your contribution to the academic society!

However, error occurred when a new layer was added to the net.
The code is:
net.layers(end+1) = struct( 'name', 'theta', ... 'type', 'conv', ... 'weights', {weightsandbias}, ... 'stride', 1, ... 'pad', 0, ... 'learningRate', opts.theta_learningRate) ;

Error information:

Subscripted assignment between dissimilar structure.

Error dagnn_3dmmasstn_init (line 18)
net.layers(end+1) = struct( 'name', 'theta', ...

Error dagnn_3dmmasstn (line 38)
net = dagnn_3dmmasstn_init(model,idx,opts);


The layer you want to insert does not have the same content.
The layers of the original net does not have 'weights' and 'learningRate', and the 'pad', 'stride' are in the 'block' item of these layers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant