(self, bottom, top)
| 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 |