Message Boards Message Boards

GROUPS:
985 Views
|
0 Replies
|
1 Total Likes
|

Is there a way to use residual NN in Mathematica that is built-in that I'm missing? Looking at how Mathematica implements residual nets in the NetModel, it is just a NetGraph. Hence I propose a simple code for residual Nets in Mathematica which can be easily used on NetChain statements.

NetResidual[layers_] := NetGraph[{TotalLayer[], layers}, {
   NetPort["Input"] -> 1,
   NetPort["Input"] -> 2 -> 1 -> NetPort["Output"]
}]
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