user9514893
user9514893

Reputation: 41

Building keras and tensor flow on yocto

I have been trying to build keras and tensor flow packages on yocto's image that is poky but not able to do so.

Until now I have tried looking for their respective recipe but couldn't find. What's the way to add keras and tensor flow packages to poky?

Upvotes: 4

Views: 1754

Answers (2)

Erik
Erik

Reputation: 94

Found this layer on Github that might be a good starting point.

It seems to have all the recipes to include TensorFlow in your Yocto build. I would start by adding the meta-tensorflow to my bblayers.conf and adding tensorflow to IMAGE_INSTALL_append then run it, see what errors come out an try to take it from there.

Not sure about Keras, but what I understand from the docs is that it should be part of TensorFlow.

Upvotes: 1

user94574
user94574

Reputation: 51

From the layer index, it appears that there isn't an existing recipe to build either tensorflow or keras . You'll have to create the recipe yourself or open a bugzilla request to have it added and hope that someone has the time to do that.

Writing a new recipe for a large package such as tensorflow is quite a bit of work so I can't tell you exactly how to do it here but I can give you pointers to the relevant YP documentation and community.

To write the recipe, there are guidelines in the Yocto Documentation. You should be sure that you have built an image such as core-image-minimal and added a simple recipe as well as examined similar recipes in the oe-core and meta-openembedded.

If you get stuck ask for help using one of the forums listed in the Community section of the OpenEmbedded wiki.

Upvotes: 4

Related Questions