Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions scripts/build-tensorflow-android.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/bin/bash

echo "Did you run ./configure with iOS + Android support in ./tensorflow/ already?"
echo "Did you run ./configure with iOS + Android support in ./tensorflow/ already?"
echo "Did you run ./configure with iOS + Android support in ./tensorflow/ already?"
echo "Did you run ./configure with iOS + Android support in ./tensorflow/ already?"
echo "Did you run ./configure with iOS + Android support in ./tensorflow/ already?"
echo "Did you run ./configure with iOS + Android support in ./tensorflow/ already?"
echo "Did you run ./configure with iOS + Android support in ./tensorflow/ already?"
echo "Did you run ./configure with iOS + Android support in ./tensorflow/ already?"

read -p "Did you run ./configure with iOS + Android in /tensorflow/ already? [yN]: " -n 1 -r
echo ""
if [[ $REPLY =~ ^[Yy]$ ]]
then
# Assumes the user ran ./configure in tensorflow/ already
cd tensorflow

bazel build --config=android # -c opt --cxxopt=--std=c++17 //tensorflow/lite/ios:TensorFlowLiteC_framework

cd ..

cp -f -r tensorflow/bazel-bin/tensorflow/lite/android/ android/

echo "What now?"
fi
17 changes: 10 additions & 7 deletions scripts/build-tensorflow-ios.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
#!/bin/bash

echo "Did you run ./configure in ./tensorflow/ already?"
echo "Did you run ./configure in ./tensorflow/ already?"
echo "Did you run ./configure in ./tensorflow/ already?"
echo "Did you run ./configure in ./tensorflow/ already?"
echo "Did you run ./configure in ./tensorflow/ already?"
echo "Did you run ./configure in ./tensorflow/ already?"
echo "Did you run ./configure with iOS + Android support in ./tensorflow/ already?"
echo "Did you run ./configure with iOS + Android support in ./tensorflow/ already?"
echo "Did you run ./configure with iOS + Android support in ./tensorflow/ already?"
echo "Did you run ./configure with iOS + Android support in ./tensorflow/ already?"
echo "Did you run ./configure with iOS + Android support in ./tensorflow/ already?"
echo "Did you run ./configure with iOS + Android support in ./tensorflow/ already?"
echo "Did you run ./configure with iOS + Android support in ./tensorflow/ already?"
echo "Did you run ./configure with iOS + Android support in ./tensorflow/ already?"

read -p "Did you run ./configure in /tensorflow/ already? [yN]: " -n 1 -r
read -p "Did you run ./configure with iOS + Android in /tensorflow/ already? [yN]: " -n 1 -r
echo ""
if [[ $REPLY =~ ^[Yy]$ ]]
then
# Assumes the user ran ./configure in tensorflow/ already
Expand Down