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 May 29, 2024, 9:54 a.m.