GithubHelp home page GithubHelp logo

codeaudit / tensorframes-artifacts Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tjhunter/tensorframes-artifacts

0.0 2.0 0.0 52.63 MB

Custom jar artifacts compiled for the TensorFrames project

License: Apache License 2.0

Scala 15.69% Shell 84.31%

tensorframes-artifacts's Introduction

tensorframes-artifacts

Custom jar artifacts compiled for the TensorFrames project. This requirement may go away once javacpp-presets version 1.2 is published.

Install

Simply publish locally the artifacts:

build/sbt publishLocal

Build artifacts yourself

Here is the procedure to recreate the files.

Requirements:

  • docker

Get the latest docker image for tensorflow:

docker run -it --name=tf-build b.gcr.io/tensorflow/tensorflow-full "bash"

Inside the container, install bazel, maven, javacpp and finally javacpp-presets:

apt-get update
apt-get -y install git

cd
wget https://github.com/bazelbuild/bazel/releases/download/0.1.5/bazel-0.1.5-installer-linux-x86_64.sh
bash bazel-0.1.5-installer-linux-x86_64.sh
echo "source /usr/local/lib/bazel/bin/bazel-complete.bash" >> ~/.bashrc
source ~/.bashrc

cd
rm -f unzip apache-maven-3.*-bin.zip
wget http://www.trieuvan.com/apache/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.zip
unzip apache-maven-3.3.9-bin.zip
echo "export PATH=~/apache-maven-3.3.9/bin:$PATH" >> ~/.bashrc
source ~/.bashrc

cd
git clone https://github.com/bytedeco/javacpp.git
cd javacpp
mvn install

Finally, install a custom version of javacpp-presets:

cd
git clone https://github.com/bytedeco/javacpp-presets.git
cd javacpp-presets
git remote update
git reset --hard
./cppbuild.sh -platform linux-x86_64 install tensorflow
mvn package --projects .,tensorflow

Get the files out and deploy them:

tensorframes-artifacts's People

Contributors

thunterdb avatar tjhunter avatar

Watchers

 avatar  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.