tools/torchgen/R/generate.R

#' Generates all torch autogenerated code.
#'
#' @param path the path to the root odf the torch package.
#'
#' @export
generate <- function(path = "../..") {
  cat("Starting code generation ...\n")
  cpp(path)
  r(path)
  cat("Done!")
}

Try the torch package in your browser

Any scripts or data that you put into this service are public.

torch documentation built on June 7, 2023, 6:19 p.m.