tensorflow (version 1.10)

tf: Main TensorFlow module

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

tf

Arguments

Format

TensorFlow module

Examples

Run this code
# 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)
# }

Run the code above in your browser using DataLab