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

Method test_exception

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

Source from the content-addressed store, hash-verified

128 self.assertEqual(s, d)
129
130 def test_exception(self):
131 net_file = exception_net_file()
132 self.assertRaises(RuntimeError, caffe.Net, net_file, caffe.TEST)
133 os.remove(net_file)
134
135 def test_parameter(self):
136 net_file = parameter_net_file()

Callers

nothing calls this directly

Calls 1

exception_net_fileFunction · 0.85

Tested by

no test coverage detected