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

Method test_phase

python/caffe/test/test_python_layer.py:164–168  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

162 os.remove(net_file)
163
164 def test_phase(self):
165 net_file = phase_net_file()
166 for phase in caffe.TRAIN, caffe.TEST:
167 net = caffe.Net(net_file, phase)
168 self.assertEqual(net.forward()['phase'], phase)

Callers

nothing calls this directly

Calls 3

phase_net_fileFunction · 0.85
NetMethod · 0.80
forwardMethod · 0.45

Tested by

no test coverage detected