Fix protobuf message generation
authorThomas <twatson52@mac.com>
Mon, 11 Apr 2016 17:52:34 +0000 (12:52 -0500)
committerThomas <twatson52@mac.com>
Mon, 11 Apr 2016 17:52:34 +0000 (12:52 -0500)
commit09130ce35604a991cee41c942ff8845468cacfa7
treee52ed8b5fcf9aa8139f61c79ecf0f4b3003e6788
parentd21772c0a00690bbce9a80590e2665d23fc707ee
Fix protobuf message generation

The latest versions of protobuf do not reveal empty message fields with dir(). This uses the documented way of determining all of a message's fields and so is compatible with past and future versions of protobuf.
python/caffe/net_spec.py