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

Method test_multi_conv

python/caffe/test/test_coord_map.py:94–107  ·  view source on GitHub ↗

Multiple bottoms/tops of a layer are identically mapped.

(self)

Source from the content-addressed store, hash-verified

92 self.assertEquals(b, b_pad)
93
94 def test_multi_conv(self):
95 """
96 Multiple bottoms/tops of a layer are identically mapped.
97 """
98 n = coord_net_spec()
99 # multi bottom/top
100 n.conv_data, n.conv_aux = L.Convolution(
101 n.data, n.aux, ntop=2, num_output=10, kernel_size=5, stride=2,
102 pad=0)
103 ax1, a1, b1 = coord_map_from_to(n.conv_data, n.data)
104 ax2, a2, b2 = coord_map_from_to(n.conv_aux, n.aux)
105 self.assertEquals(ax1, ax2)
106 self.assertEquals(a1, a2)
107 self.assertEquals(b1, b2)
108
109 def test_rect(self):
110 """

Callers

nothing calls this directly

Calls 2

coord_map_from_toFunction · 0.90
coord_net_specFunction · 0.85

Tested by

no test coverage detected