Git Product home page Git Product logo

Comments (3)

JosephPB avatar JosephPB commented on July 24, 2024 1

Hi @MaajidKhan for a TensorFlow conversion I think you'll need to change L30 in dump_to_cpp.py: to: for ind, l in enumerate(arch["config"]["layers"]): as the json file contains an extra key for "config".

You might then also need to make some edits to how the weights are read in too.

Hope this helps!

from keras2cpp.

MaajidKhan avatar MaajidKhan commented on July 24, 2024 1

Hi @JosephPB , your fix worked for me for working around with Tensorflow backend. Thanks.

from keras2cpp.

pplonski avatar pplonski commented on July 24, 2024

Hey, from what I remember the code was working with Theano backend. So to use it with TensorFlow you need to provide your own code for transformation (it should be a matter of change in dimension order, so it should be very similar to current code). Sorry that it is not working out of the box.

Please check the following discussion https://stackoverflow.com/questions/36720498/convert-keras-model-to-c to find more similar solutions.

from keras2cpp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.