[pycaffe] allow layers to have names different from their first tops
authorJonathan L Long <jonlong@cs.berkeley.edu>
Fri, 24 Jul 2015 03:35:42 +0000 (20:35 -0700)
committerJonathan L Long <jonlong@cs.berkeley.edu>
Fri, 24 Jul 2015 03:35:42 +0000 (20:35 -0700)
commit96c2fe1de80c9752b992c4578a3ce46028d21fc5
tree67a38c71c407bd8e7669b9ba8dd3e16d4b0a4ecd
parentf16195aa8b1569e0260c48d4159b7d2ce0ea2fab
[pycaffe] allow layers to have names different from their first tops

Previously, net spec only allowed names to be assigned to Tops, giving
layers the names of their first tops. Now, names can be assigned to
Functions, which become layer names in serialization. Unnamed Functions
still get named after their first top, if present, or autogenerated, if
not. (This will allow top-less layers in a natural way.)
python/caffe/net_spec.py