torch.nn.functional.normalize — PyTorch 1.10.1 documentation
pytorch.org › torchWith the default arguments it uses the Euclidean norm over vectors along dimension 1 1 1 for normalization. Parameters. input – input tensor of any shape. p – the exponent value in the norm formulation. Default: 2. dim – the dimension to reduce. Default: 1. eps – small value to avoid division by zero. Default: 1e-12
torch.nn.functional.normalize — PyTorch 1.10.1 documentation
https://pytorch.org/docs/stable/generated/torch.nn.functional.normalize.htmltorch.nn.functional.normalize — PyTorch 1.10.0 documentation torch.nn.functional.normalize torch.nn.functional.normalize(input, p=2.0, dim=1, eps=1e-12, out=None) [source] Performs L_p Lp normalization of inputs over specified dimension. For a tensor input of sizes (n_0, ..., n_ {dim}, ..., n_k) (n0 ,...,ndim ,...,nk ), each n_ {dim} ndim