This package implements autograph for R.
It lets you use tensors in R control flow expressions like if
, while
and for
and automatically translates those expressions into tensorflow graphs.
It is compatible with and tested against all Tensorflow versions >= 1.15 (including versions 2.x).
autograph
and Tensorflow 2.autograph
hints
You can install tfautograph from CRAN with:
install.packages("tfautograph")
You can install the development version from GitHub with:
# install.packages("devtools")
devtools::install_github("t-kalinowski/tfautograph")