tf: Main TensorFlow module

Description Usage Format Examples

Description

Interface to main TensorFlow module. Provides access to top level classes and functions as well as sub-modules (e.g. tf$nn, tf$contrib$learn, etc.).

Usage

1

Format

TensorFlow module

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Not run: 
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)

## End(Not run)

eric-erki/TensorFlow-for-R documentation built on May 31, 2019, 12:10 p.m.