R/torch_center.R

Defines functions torch_center

#' @export
torch_center<-function(x,
                       dim = 1
)
{
  mu = torch_mean(x,dim,keepdim = T)
  return(x - mu)
}
adsb85/lqp documentation built on April 9, 2022, 12:35 a.m.