Search code examples
neural-networkchainer

How do I print layers in a Chainer model?


I have a chainer model. For example something like this:

import chainer.links as L

c0=L.Convolution2D(3, 32, 3, 1, 1),
c1=L.Convolution2D(32, 64, 4, 2, 1),
c2=L.Convolution2D(64, 64, 3, 1, 1),

I want to print the layers in the model. Googling "chainer print layers" has been futile.

Does anybody know how to print the layers in chainer?


Solution

  • Sorry this was an easy one, details here