Multiplies each element of the input input
with the scalar
other
and returns a new resulting tensor.
$$
\mbox{out}_i = \mbox{other} \times \mbox{input}_i
$$
If input
is of type FloatTensor
or DoubleTensor
, other
should be a real number, otherwise it should be an integer
Each element of the tensor input
is multiplied by the corresponding
element of the Tensor other
. The resulting tensor is returned.
The shapes of input
and other
must be
broadcastable .
$$
\mbox{out}_i = \mbox{input}_i \times \mbox{other}_i
$$