Skip to content

wazeerzulfikar/rtensorflow

Repository files navigation

TensorFlow R Binding

RTensorFlow provides idiomatic R language bindings for TensorFlow.

Notice: This project is still under active development and not guaranteed to have a stable API. This is especially true because the underlying TensorFlow C API has not yet been stabilized as well.

Getting Started

Since this package depends on the TensorFlow C API, it needs to be installed from Tensorflow website.

Manual Tensorflow C API Installation

The Tensorflow C API libtensorflow.so can directly be installed onto the host machine by following the instructions in this link

Make sure you install the library in the default directory (/usr/local)

macOS Note : There is a homebrew formula to install libtensorflow without any hassle.

Usage

Upon installing libtensorflow.so in the default directory,

  1. install.packages("devtools")
  2. library(devtools)
  3. install_github("wazeerzulfikar/rtensorflow")
  4. library(rtensorflow)
  5. For examples on how to use the R API, look at R/examples.R

Contributing

Developers and users are welcome to contribute!

License

This project is licensed under the terms of the Apache 2.0 license.