R/torch_cat_list.R

Defines functions torch_cat_list

#' @export
torch_cat_list<-function(tensors,
                         dim = 1L)
{
  len = sapply(tensors,length)
  tensors = tensors[len > 0]
  torch_cat(tensors,dim = dim)

}
adsb85/lqp documentation built on April 9, 2022, 12:35 a.m.