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

Method test_reshape

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

Source from the content-addressed store, hash-verified

120 self.assertEqual(y, 10**3 * x)
121
122 def test_reshape(self):
123 s = 4
124 self.net.blobs['data'].reshape(s, s, s, s)
125 self.net.forward()
126 for blob in six.itervalues(self.net.blobs):
127 for d in blob.data.shape:
128 self.assertEqual(s, d)
129
130 def test_exception(self):
131 net_file = exception_net_file()

Callers

nothing calls this directly

Calls 2

reshapeMethod · 0.45
forwardMethod · 0.45

Tested by

no test coverage detected