chainer.functions.bias¶
- 
chainer.functions.bias(x, y, axis=1)[source]¶
- Elementwise summation with broadcasting. - Computes a elementwise summation of two input variables, with the shape of the latter variable broadcasted to match the shape of the former. - axisis the first axis of the first variable along which the second variable is applied.- The term “broadcasting” here comes from Caffe’s bias layer so the “broadcasting” with the following arguments: - x : 100 x 3 x 40 x 5 x 6 y : 3 x 40 axis : 1 - is equivalent to the following numpy broadcasting: - x : 100 x 3 x 40 x 5 x 6 y : (1 x) 3 x 40 x 1 x 1 - Note that the axis of - xto which we apply- yis specified by the argument- axis, whose meaning is different from numpy’s- axis.- Parameters
- x ( - Variableor N-dimensional array) – Input variable to be summed.
- y ( - Variableor N-dimensional array) – Input variable to sum, broadcasted.
- axis (int) – The first axis of - xalong which- yis applied.
 
- Returns
- Output variable. 
- Return type