tensorflow - Install Keras on Heroku with Theano backend as default -


i've been trying deploy heroku webapp uses keras models. unfortunately, importing keras default tensorflow backend takes atrociously long, , causing web dyno timeout (due heroku's 30sec limit), causing endless termination , restart cycle.

i've since discovered keras imports faster theano backend, don't know how specify use keras w/ theano in heroku deployment. locally, change ~/.keras/keras.json file, how specify heroku's environment?

  • python 3.6.0
  • keras 2.0.4
  • theano 0.9.0
  • tensorflow 1.2.1

thanks much!


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -