MCPcopy Create free account
hub / github.com/OpenPTrack/open_ptrack_v2 / setUp

Method setUp

rtpose_wrapper/python/caffe/test/test_net.py:39–47  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

37
38class TestNet(unittest.TestCase):
39 def setUp(self):
40 self.num_output = 13
41 net_file = simple_net_file(self.num_output)
42 self.net = caffe.Net(net_file, caffe.TRAIN)
43 # fill in valid labels
44 self.net.blobs['label'].data[...] = \
45 np.random.randint(self.num_output,
46 size=self.net.blobs['label'].data.shape)
47 os.remove(net_file)
48
49 def test_memory(self):
50 """Check that holding onto blob data beyond the life of a Net is OK"""

Callers

nothing calls this directly

Calls 2

simple_net_fileFunction · 0.85
NetMethod · 0.80

Tested by

no test coverage detected