* Return a new Tensor with every element multiplied by a constant. * @param {number} val The value to multiply by. * @returns {Tensor} The new tensor.
(val)
| 252 | * @returns {Tensor} The new tensor. |
| 253 | */ |
| 254 | mul(val) { |
| 255 | return this.clone().mul_(val); |
| 256 | } |
| 257 | |
| 258 | /** |
| 259 | * Multiply the tensor by a constant in place. |
no test coverage detected