Message Boards Message Boards

0
|
521 Views
|
1 Reply
|
0 Total Likes
View groups...
Share
Share this post:

Deleting some layers in a Net

Posted 2 months ago

I hope that this time I am on the correct spot to ask my question :-)

By deleting some layers in a Net, like Abrita showed recently in a webinar, I get lots of errors, as the Array sizes do not match up any more. How can I adapt mismatches in Array sizes from Output of Layer n to Input layer n+1.

Thanks, Bert

POSTED BY: B. Cornas
Posted 2 months ago

I'll attach a Nb for code. The code works fine with the initial values.

When using some different values, especially for 'layersToDrop' (e.g. layersToDrop=5), I get errors like this one:

NetDrop::ninctyp2: Incompatible dimensions for output of layer "block1a", NetChain[«6»], and input to layer "block2b", NetGraph[«11»,«13»]; a 16*112*112 array of real numbers is not compatible with a 24*56*56 array of real numbers, respectively.

I understand the error. The Array size of output of layer n is not compatible with the input of layer n+1, as I have taken out one or more layers in the Net.

How do I adapt the layers that do not 'communicate' properly anymore?
In other words, can I change the Array sizes of the layers in the Net?

Attachments:
POSTED BY: B. Cornas
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract