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

Method forward

python/caffe/test/test_python_layer_with_param_str.py:21–22  ·  view source on GitHub ↗
(self, bottom, top)

Source from the content-addressed store, hash-verified

19 top[0].reshape(*bottom[0].data.shape)
20
21 def forward(self, bottom, top):
22 top[0].data[...] = self.value * bottom[0].data
23
24 def backward(self, top, propagate_down, bottom):
25 bottom[0].diff[...] = self.value * top[0].diff

Callers 1

test_forwardMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected