Skip to content

Error Occurs when a new layer is added #11

Description

@ChunLLee

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions