These functions are defined here 6.
You might want to use in this case linalg::vector_norm. It has signature:
Tensor vector_norm(const Tensor& self, Scalar ord, optional<IntArrayRef> opt_dim, bool keepdim, optional<ScalarType> opt_dtype)

Resulting in
result = torch::linalg::vector_norm(tensor, 2, 2, false, c10::nullopt);