R/modules.R

#' Main TensorFlow module
#'
#' Interface to main TensorFlow  module. Provides access to top level classes
#' and functions as well as sub-modules (e.g. \code{tf$nn},
#' \code{tf$contrib$learn}, etc.).
#'
#' @format TensorFlow module
#'
#' @examples
#' \dontrun{
#' library(tensorflow)
#'
#' hello <- tf$constant('Hello, TensorFlow!')
#' zeros <- tf$Variable(tf$zeros(shape(1L)))
#'
#' tf$print(hello)
#' tf$print(zeros)
#' }
#' @export
tf <- NULL
rstudio/tensorflow documentation built on March 29, 2024, 4:26 p.m.