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)))
#'
#' sess <- tf$Session()
#' sess$run(tf$global_variables_initializer())
#'
#' sess$run(hello)
#' sess$run(zeros)
#' }
#' @export
tf <- NULL
eric-erki/TensorFlow-for-R documentation built on May 31, 2019, 12:10 p.m.