Skip to content

Commit

Permalink
Add main() for draw_net unittest, fix import errors
Browse files Browse the repository at this point in the history
  • Loading branch information
nitheeshas committed Apr 4, 2017
1 parent 41e34c9 commit 31bfe8f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions python/caffe/test/test_draw.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import os
import unittest

from google import protobuf
from google.protobuf import text_format

import caffe.draw
from caffe.proto import caffe_pb2
Expand Down Expand Up @@ -29,5 +29,9 @@ def test_draw_net(self):
for filename in getFilenames():
net = caffe_pb2.NetParameter()
with open(filename) as infile:
protobuf.text_format.Merge(infile.read(), net)
text_format.Merge(infile.read(), net)
caffe.draw.draw_net(net, 'LR')


if __name__ == "__main__":
unittest.main()

0 comments on commit 31bfe8f

Please sign in to comment.