(self)
| 37 | |
| 38 | class 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""" |
nothing calls this directly
no test coverage detected