Coder Social home page Coder Social logo

qingyunqu / tf-mobile-gpu-training Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 459.85 MB

TensorFlow training by using mobile GPU on mobile devices

License: Apache License 2.0

Python 40.58% C++ 48.03% C 0.41% Shell 0.49% LLVM 0.01% CMake 0.23% Java 0.85% RenderScript 0.01% Jupyter Notebook 2.51% Makefile 0.06% Objective-C 0.01% Objective-C++ 0.11% Ruby 0.01% PHP 0.01% PureBasic 0.03% HTML 5.42% Go 1.21% Perl 0.01% Batchfile 0.01% Smarty 0.01%

tf-mobile-gpu-training's Introduction

Extension to TensorFlow to support on-mobile-gpu training.

Install bazel

install the bazel

Build example demo

$ bazel build //tensorflow/examples/rs_test:rs_benchmark --crosstool_top=//external:android/crosstool --host_crosstool_top=@bazel_tools//tools/cpp:toolchain --cpu=armeabi-v7a --copt=-D__ANDROID_TYPES_FULL__

Test the demo

$ adb push tensorflow/contrib/android_renderscript_ops/rs/so/libRSSupport.so /data/local/tmp
$ adb push tensorflow/contrib/android_renderscript_ops/rs/so/libblasV8.so /data/local/tmp
$ adb push bazel-bin/tensorflow/examples/rs_test/rs_benchmark /data/local/tmp
$ adb shell
$ cd /data/local/tmp
$ export LD_LIBRARY_PATH=./
$ ./rs_benchmark --graph=graph/OnlineTraining_128_10_True_40_20000.pb --batch_size=128

tf-mobile-gpu-training's People

Contributors

qingyunqu avatar

Stargazers

 avatar  avatar

Watchers

 avatar

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.