Skip to content
Permalink
Browse files

Merge pull request #395 from alexanderbeatson/master

tf 2.0 doc fix
  • Loading branch information
dfalbel committed Feb 5, 2020
2 parents 850df5b + 1481e19 commit 7d86f20f4bbd46b41019d01db63609e80126d782
Showing with 3 additions and 6 deletions.
  1. +1 −1 R/eager.R
  2. +2 −5 R/modules.R
@@ -15,7 +15,7 @@
#' tfe_enable_eager_execution()
#'
#' # create a random 10x10 matrix
#' x <- tf$random_normal(shape(10, 10))
#' x <- tf$random$normal(shape(10, 10))
#'
#' # use it in R via as.matrix()
#' heatmap(as.matrix(x))
@@ -14,11 +14,8 @@
#' 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)
#' tf$print(hello)
#' tf$print(zeros)
#' }
#' @export
tf <- NULL

0 comments on commit 7d86f20

Please sign in to comment.
You can’t perform that action at this time.