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

Method test_backward

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

Source from the content-addressed store, hash-verified

113 self.assertEqual(y, 10**3 * x)
114
115 def test_backward(self):
116 x = 7
117 self.net.blobs['three'].diff[...] = x
118 self.net.backward()
119 for y in self.net.blobs['data'].diff.flat:
120 self.assertEqual(y, 10**3 * x)
121
122 def test_reshape(self):
123 s = 4

Callers

nothing calls this directly

Calls 1

backwardMethod · 0.45

Tested by

no test coverage detected