Bias

Input

  • x:
    • Required: yes
    • Type: float32, float16
    • Description: input tensor
    • Restrictions: none
  • bias:
    • Required: yes
    • Type: float32, float16
    • Description: bias
    • Restrictions: none

Attribute

  • axis:
    • Required: no
    • Type: int
    • Description: the first axis along which to apply bias (default = 1)

      For example, if bottom[0] is 4D with shape 100 x 3 x 40 x 60, the output top[0] will have the same shape, and bottom[1] may have any of the following shapes (for the given value of axis):

      (axis == 0 == -4) 100; 100x3; 100x3x40; 100x3x40x60

      (axis == 1 == -3) 3; 3x40; 3x40x60

      (axis == 2 == -2) 40; 40x60

      (axis == 3 == -1) 60

      If the shape of bottom[1] is empty, the input is a scalar bias, which is irrelevant to axis.

    • Restriction: Must be in the range [–rank(x), rank(x)). For other restrictions, see the Caffe definition.
  • num_axes:
    • Required: no
    • Type: int
    • Description: dimension size of the bias parameter. The value -1 indicates that the axis starts from all. The value 0 indicates a scalar. If online data bottom[1] is input, ignore this parameter. The default value is 1.
    • Restriction: Must be in the range [–1, rank(x)). If axis_= axis > 0: axis, axis + rank(x), then: num_axes + axis_ <= rank(x).

Output

y:
  • Required: yes
  • Type: float32, float16
  • Description: output tensor
  • Restrictions: none