chainerx.multiply

chainerx.multiply(x1, x2)

Multiply arguments, element-wise.

Parameters
  • x1 (ndarray or scalar) – Input array.

  • x2 (ndarray or scalar) – Input array.

Returns

Returned array: \(y = x_1 \times x_2\).

Return type

ndarray

Note

During backpropagation, this function propagates the gradient of the output array to the input arrays x1 and x2.

See also

numpy.multiply