README.md in tensorflow-0.1.2 vs README.md in tensorflow-0.2.0
- old
+ new
@@ -1,13 +1,15 @@
# TensorFlow
-[TensorFlow](https://github.com/tensorflow/tensorflow) - the end-to-end machine learning platform - for Ruby
+:fire: [TensorFlow](https://github.com/tensorflow/tensorflow) - the end-to-end machine learning platform - for Ruby
-:fire: Uses the C API under the hood
+This gem is currently experimental and only supports basic tensor operations at the moment. Check out [Torch.rb](https://github.com/ankane/torch-rb) for a more complete deep learning library.
-[![Build Status](https://travis-ci.org/ankane/tensorflow.svg?branch=master)](https://travis-ci.org/ankane/tensorflow)
+To run a TensorFlow model in Ruby, [convert it to ONNX](https://github.com/onnx/tensorflow-onnx) and use [ONNX Runtime](https://github.com/ankane/onnxruntime). Check out [this tutorial](https://ankane.org/tensorflow-ruby) for a full example.
+[![Build Status](https://github.com/ankane/tensorflow/workflows/build/badge.svg?branch=master)](https://github.com/ankane/tensorflow/actions)
+
## Installation
[Install TensorFlow](#tensorflow-installation). For Homebrew, use:
```sh
@@ -20,17 +22,17 @@
gem 'tensorflow'
```
## Getting Started
-This library follows the TensorFlow 2.0 [Python API](https://www.tensorflow.org/versions/r2.0/api_docs/python/tf). Many methods and options are missing at the moment. Here’s the [current plan](https://github.com/ankane/tensorflow/issues/1). Additional PRs welcome!
+This library follows the TensorFlow 2 [Python API](https://www.tensorflow.org/api_docs/python/tf). Many methods and options are missing at the moment. Here’s the [current plan](https://github.com/ankane/tensorflow/issues/1). Additional PRs welcome!
## Constants
```ruby
-a = Tf.constant(2)
-b = Tf.constant(3)
+a = Tf.constant([1, 2, 3])
+b = Tf.constant([4, 5, 6])
a + b
```
## Variables
@@ -40,12 +42,12 @@
```
## Math
```ruby
-Tf::Math.abs(-2)
-Tf::Math.sqrt(4)
+Tf::Math.abs([-1, -2])
+Tf::Math.sqrt([1.0, 4.0, 9.0])
```
## FizzBuzz
```ruby
@@ -135,13 +137,13 @@
- [Report bugs](https://github.com/ankane/tensorflow/issues)
- Fix bugs and [submit pull requests](https://github.com/ankane/tensorflow/pulls)
- Write, clarify, or fix documentation
- Suggest or add new features
-To get started with development and testing:
+To get started with development:
```sh
git clone https://github.com/ankane/tensorflow.git
cd tensorflow
bundle install
-rake test
+bundle exec rake test
```