Giter VIP home page Giter VIP logo

Comments (2)

fo40225 avatar fo40225 commented on August 15, 2024

Tensorflow Lite has not supported Windows yet.

You may want to check this PR

from tensorflow-windows-wheel.

fo40225 avatar fo40225 commented on August 15, 2024

It's possible to build tensorflow lite on windows by MSYS2 env.

Step:

  • Download and install MSYS2

http://repo.msys2.org/distrib/i686/msys2-i686-20161025.exe

  • Update package manager

open MSYS2 MSYS and execute

pacman -Syuu

and follow the instructions.

  • Install toolchain
pacman -S base libraries compression VCS sys-utils net-utils base-devel msys2-devel mingw-w64-i686-toolchain mingw-w64-x86_64-toolchain development --needed
  • Get tensorflow lite source and apply some necessary patch.
git clone https://github.com/tensorflow/tensorflow.git -b tflite-v0.1.7
cd tensorflow
git cherry-pick -m 1 3128b4
git cherry-pick bc86da
./tensorflow/contrib/lite/download_dependencies.sh
  • Build
make -f tensorflow/contrib/lite/Makefile

FInally, you will get tensorflow/contrib/lite/gen/bin/minimal.exe that depands on MSYS-2.0.DLL, MSYS-GCC_S-SEH-1.DLL, MSYS-STDC++-6.DLL, and tensorflow/contrib/lite/gen/lib/libtensorflow-lite.a is static lib.

from tensorflow-windows-wheel.

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.