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

Method test_conv_pool_deconv

python/caffe/test/test_coord_map.py:38–53  ·  view source on GitHub ↗

Map through conv, pool, and deconv.

(self)

Source from the content-addressed store, hash-verified

36 pass
37
38 def test_conv_pool_deconv(self):
39 """
40 Map through conv, pool, and deconv.
41 """
42 n = coord_net_spec()
43 # identity for 2x pool, 2x deconv
44 ax, a, b = coord_map_from_to(n.deconv, n.data)
45 self.assertEquals(ax, 1)
46 self.assertEquals(a, 1)
47 self.assertEquals(b, 0)
48 # shift-by-one for 4x pool, 4x deconv
49 n = coord_net_spec(pool=4, dstride=4)
50 ax, a, b = coord_map_from_to(n.deconv, n.data)
51 self.assertEquals(ax, 1)
52 self.assertEquals(a, 1)
53 self.assertEquals(b, -1)
54
55 def test_pass(self):
56 """

Callers

nothing calls this directly

Calls 2

coord_map_from_toFunction · 0.90
coord_net_specFunction · 0.85

Tested by

no test coverage detected