简体   繁体   English

在yocto上建立keras和张量流

[英]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. 我一直在尝试在yocto的图像上构建keras和tensor流程包,这是一个很好的但不能这样做的。

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? 将keras和张量流程包添加到poky的方法是什么?

From the layer index, it appears that there isn't an existing recipe to build either tensorflow or keras . 从图层索引看,似乎没有现成的配方来构建tensorflowkeras 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. 您必须自己创建配方或打开bugzilla请求以添加它,并希望有人有时间这样做。

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. 为tensorflow这样的大包编写一个新的配方是相当多的工作,所以我不能告诉你如何在这里做到这一点,但我可以给你指向相关的YP文档和社区。

To write the recipe, there are guidelines in the Yocto Documentation. 要编写配方,Yocto文档中有指南 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. 你应该确定你已经构建了一个像core-image-minimal这样的图像,并添加了一个简单的配方 ,并在oe-core和meta-openembedded中检查了类似的配方。

If you get stuck ask for help using one of the forums listed in the Community section of the OpenEmbedded wiki. 如果您遇到困难,请使用OpenEmbedded wiki的社区部分中列出的论坛之一寻求帮助。

Found this layer on Github that might be a good starting point. 在Github上找到这个层可能是一个很好的起点。

It seems to have all the recipes to include TensorFlow in your Yocto build. 似乎所有的配方都包含在Yocto构建中的TensorFlow。 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. 我会通过添加启动meta-tensorflow到我的bblayers.conf并添加tensorflowIMAGE_INSTALL_append那么运行它,看看有哪些误区走出来的尝试把它从那里。

Not sure about Keras, but what I understand from the docs is that it should be part of TensorFlow. 不确定Keras,但我从文档中了解到它应该是TensorFlow的一部分。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM