normalize(p = 2.0, dim = 1) {
        return this.clone().normalize_(p, dim);
    }
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.