* Performs `L_p` normalization of inputs over specified dimension. * @param {number} [p=2] The exponent value in the norm formulation * @param {number} [dim=1] The dimension to reduce * @returns {Tensor} The normalized tensor.
(p = 2.0, dim = 1)
| 581 | * @returns {Tensor} The normalized tensor. |
| 582 | */ |
| 583 | normalize(p = 2.0, dim = 1) { |
| 584 | return this.clone().normalize_(p, dim); |
| 585 | } |
| 586 | |
| 587 | /** |
| 588 | * Compute and return the stride of this tensor. |
no test coverage detected