theano

Convert Keras model to C++ [closed]

南笙酒味 提交于 2019-11-26 12:03:49
问题 I am using Keras (with Theano) to train my CNN model. Does anyone has idea how can I use it in my C++ application? Does anyone tried something similar? I have idea to write some python code that will generate a c++ code with network functions - any suggestion on it? I found a similar question here how to use Tensorflow Keras model in C++ but without answer. 回答1: To answer my own question and have a solution - I wrote a plain c++ solution called keras2cpp (its code available on github). In

How do I install theano in Anaconda ver. 2.1 Windows 64 bit for Python 3.4?

限于喜欢 提交于 2019-11-26 08:37:33
问题 I\'ve installed Anaconda. Now I want to install the Theano library in Anaconda. I have tried: The Theano installer for Anaconda from http://deeplearning.net/software/theano/install.html#windows-installer-for-anacondace, but it raises error \"The installer could not find a version of Anaconda installed. Please download and install Anaconda CE\". I have added ~/anaconda3, ~/anaconda3/scripts to the environment variable path. I have tried to install it by building the package as mentioned on

How to get reproducible results in keras

只愿长相守 提交于 2019-11-26 03:09:48
问题 I get different results (test accuracy) every time I run the imdb_lstm.py example from Keras framework (https://github.com/fchollet/keras/blob/master/examples/imdb_lstm.py) The code contains np.random.seed(1337) in the top, before any keras imports. It should prevent it from generating different numbers for every run. What am I missing? UPDATE: How to repro: Install Keras (http://keras.io/) Execute https://github.com/fchollet/keras/blob/master/examples/imdb_lstm.py a few times. It will train