Skip to content

Cross-build docker image #9

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
liuqun opened this issue Jul 25, 2018 · 3 comments
Closed

Cross-build docker image #9

liuqun opened this issue Jul 25, 2018 · 3 comments

Comments

@liuqun
Copy link

liuqun commented Jul 25, 2018

Here's a feature branch that switch the base image to multi-architecture docker image:

The docker contains:

  • Docker base image multiarch/debian-debootstrap:armhf-stretch
  • Python 2.7
  • tensorflow-1.9.0-cp27-none-linux_armv7l.whl built by Google .
  • numpy 1.14.5 built from original source package.
  • Lots of pre-built python wheel packages from Raspbian's extra pip index repo https://www.piwheels.org/ .

It enables image cross-building from any 64-bit PC.

And I have uploaded another none-official docker image for raspberry pi 2/3 at:

Welcome to test (I have only one Raspberry Pi 2 at hand. And I don't know whether my docker image works on other device or not.)

docker pull liuqun/rpi-docker-tensorflow:1.9.0

Known bugs:

  1. Not compatible with numpy-1.15.0rc2 ~ numpy-1.15.0: numpy.dtype size changed, may indicate binary incompatibility. Expected 56, got 52
  2. I tried to upgrade to python-3.5, but got warnings that in tensorflow-1.9.0 or earlier version module 'tensorflow.python.framework.fast_tensor_util' is compiled with python-3.4. The following warning messages would be fixed in tensorflow-1.10.x release. See issues Submit Raspberry Pi releases to piwheels.org tensorflow/tensorflow#18202 and Missing package: tensorflow piwheels/piwheels#41
Python 3.5.3 (default, Jan 19 2017, 14:11:04)
[GCC 6.3.0 20170118] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorflow as tf
/usr/lib/python3.5/importlib/_bootstrap.py:222: RuntimeWarning: compiletime version 3.4 of module 'tensorflow.python.framework.fast_tensor_util' does not match runtime version 3.5
/usr/lib/python3.5/importlib/_bootstrap.py:222: RuntimeWarning: builtins.type size changed, may indicate binary incompatibility. Expected 432, got 412
@antoniosap
Copy link

and for tensorflow 1.12 ?

@romilly
Copy link
Owner

romilly commented Dec 6, 2018 via email

@romilly
Copy link
Owner

romilly commented Aug 8, 2019

The project has risen from the dead, as it's now realistic to run TensorFlow on a Pi 4 with 4 GB of RAM. I do not intenb to create cross-builds for X86, as the current build takes a reasonable me on Rasbia/Pi 4.

@romilly romilly closed this as completed Aug 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants