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

Method test_catch_unconnected

python/caffe/test/test_coord_map.py:167–174  ·  view source on GitHub ↗

Catch mapping spatially unconnected tops.

(self)

Source from the content-addressed store, hash-verified

165 crop(n.deconv, n.data)
166
167 def test_catch_unconnected(self):
168 """
169 Catch mapping spatially unconnected tops.
170 """
171 n = coord_net_spec()
172 n.ip = L.InnerProduct(n.deconv, num_output=10)
173 with self.assertRaises(RuntimeError):
174 coord_map_from_to(n.ip, n.data)
175
176 def test_catch_scale_mismatch(self):
177 """

Callers

nothing calls this directly

Calls 2

coord_map_from_toFunction · 0.90
coord_net_specFunction · 0.85

Tested by

no test coverage detected