Comments (6)
I test your code;
with the Theano backend, your code work well
python: 0.09988655 0.10504469 0.10044335 0.10128921 0.09823733 0.095519 0.09941912 0.10130119 0.09886824 0.09999127
c++: 0.0998865515 0.105044685 0.100443356 0.101289213 0.0982373282 0.0955190063 0.0994191244 0.101301186 0.0988682434 0.0999912620
with the Tensorflow backend,sorry, it's incorrect
python: 0.0998288 0.10554188 0.09975836 0.10162295 0.09870712 0.09481214 0.0988815 0.10205296 0.09908297 0.0997113
c++: 0.0998295173 0.105537765 0.0997576788 0.101601161 0.0986871123 0.0948245302 0.0989128724 0.102043636 0.0990825072 0.0997231528
if train more epochs, the difference greater with the Tensorflow backend
thanks your codes
from keras2cpp.
It is working with theano backend only - sorry!
from keras2cpp.
thanks your reply;
will you plan to add Tensorflow backend ?
thanks
from keras2cpp.
no, for tensorflow please use tensorflow c++ api directly.
from keras2cpp.
please show me some " tensorflow c++ api" link;
thank you very much!
from keras2cpp.
take a look at this post https://medium.com/jim-fleming/loading-a-tensorflow-graph-with-the-c-api-4caaff88463f
from keras2cpp.
Related Issues (20)
- does it support 'Model' model ? HOT 2
- how can I use colored images inputs? HOT 2
- How to port Keras neural network model into C# ? HOT 1
- Looking for a way to receive MSCOCO's Architecture JSON File HOT 1
- When the top layer must be excluded in Keras...
- Running Environment Setting for the Code
- LSTM to CPP, who has good method? HOT 3
- terminate called after throwing an instance of 'std::bad_alloc' HOT 3
- Compatible for python3 and new keras HOT 3
- Right Keras and Tensorflow version? HOT 3
- simpler c++ code HOT 1
- newbie asking
- Conv1D layer support HOT 1
- Cant verify results
- Issue dumping the network to .nnet file HOT 3
- custom model architecture HOT 1
- TypeError: ('Keyword argument not understood:', 'border_mode') HOT 2
- Skip dropout rate error HOT 4
- issue while testing the test_run.sh file HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from keras2cpp.