MCPcopy Create free account
hub / github.com/BVLC/caffe / load_net

Method load_net

python/caffe/test/test_net_spec.py:52–56  ·  view source on GitHub ↗
(self, net_proto)

Source from the content-addressed store, hash-verified

50
51class TestNetSpec(unittest.TestCase):
52 def load_net(self, net_proto):
53 f = tempfile.NamedTemporaryFile(mode='w+', delete=False)
54 f.write(str(net_proto))
55 f.close()
56 return caffe.Net(f.name, caffe.TEST)
57
58 def test_lenet(self):
59 """Construct and build the Caffe version of LeNet."""

Callers 2

test_lenetMethod · 0.95
test_zero_topsMethod · 0.95

Calls 2

writeMethod · 0.80
NetMethod · 0.80

Tested by

no test coverage detected