(self)
| 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() |