#' @export
torch_norm_2<-function(x,
dim,
keepdim = FALSE,
dtype = NULL)
{
sqrt( torch_sum(x^2,dim = dim,keepdim = keepdim,dtype = dtype))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.