Tensorflow does not officially support Ruby. I was wondering how one can use tensorflow, full version (Python or JS), in a rails app.
While this is a general question, the answer may be of use to the community. No one has asked this and many people new to using other languages like Python in Rails would benefit.
Another way to state this question is what some of the successful companies using rails are doing to use tensorflow.
tensorflow.rb. Doesn't seem to have updated in a few months, but it is most likely the best approach to using TensorFlow in Ruby.pycall.rb- see this issue. Note this requires you to have an available Python environment to run your program.tensorflow.rb, I think it might work with newer versions of the library. You just don't get the nicer functions from Python, and if you want to build a graph you have to do it at op level (e.g. seeclassify_image.rb). If you just want to load a saved model (seecaptcha.rb) it should be easy. You may decide what suits you best.