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

Method test_forward

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

Source from the content-addressed store, hash-verified

106 os.remove(net_file)
107
108 def test_forward(self):
109 x = 8
110 self.net.blobs['data'].data[...] = x
111 self.net.forward()
112 for y in self.net.blobs['three'].data.flat:
113 self.assertEqual(y, 10**3 * x)
114
115 def test_backward(self):
116 x = 7

Callers

nothing calls this directly

Calls 1

forwardMethod · 0.45

Tested by

no test coverage detected