Comments (5)
Just to clarify: the request on raspeberry pi (armv7) is for inference only.
On tuner: Keras Tuner should work, I used it a few weeks ago. Let us know if not. Link:
https://www.tensorflow.org/tutorials/keras/keras_tuner
Now, having said that, doing a tutorial page on tuning TF-DF models is also in our TODO list.
from yggdrasil-decision-forests.
Awesome! Thank you Jan! :D
Below is the latest logs from trying to cross compile using an armv7 compiler. Like you mentioned the library requires a ton of dependencies and we are not sure if they dependencies will work. If you guys have time could you create a stand alone example of just inference. That would really be helpful in understanding which libraries are requires / not needed.
# I am trying to compile on gcc-9 armv7 compiler and getting this error:
# arm-linux-gnueabihf-gcc-9.3.0: error: unrecognized command line option ‘-msse3’
ERROR: /home/jw/.cache/bazel/bazel_jw/ec70e549ffe7593eeda7bb3167603cae/external/org_tensorflow/tensorflow/core/platform/profile_utils/BUILD:42:11: Compiling tensorflow/core/platform/profile_utils/cpu_utils.cc [for host] failed: (Exit 1): arm-linux-gnueabihf-gcc-9.3.0 failed: error executing command
(cd /home/jw/.cache/bazel/bazel_jw/ec70e549ffe7593eeda7bb3167603cae/execroot/main &&
exec env -
LD_LIBRARY_PATH=/mnt/pi-toolchain/sysroot/usr/lib
PATH=’/home/jw/.local/bin:/home/jw/.nvm/versions/node/v14.17.4/bin:/home/jw/miniconda3/bin:/home/jw/.local/bin:/home/jw/miniconda3/bin:/home/jw/miniconda3/condabin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/mnt/c/WINDOWS/system32:/mnt/c/WINDOWS:/mnt/c/WINDOWS/System32/Wbem:/mnt/c/WINDOWS/System32/WindowsPowerShell/v1.0:/mnt/c/Program Files/Intel/WiFi/bin:/mnt/c/Program Files/Common Files/Intel/WirelessCommon:/mnt/c/WINDOWS/System32/OpenSSH:/mnt/c/Program Files/dotnet:/mnt/c/Program Files/Microsoft SQL Server/130/Tools/Binn:/mnt/c/Program Files/Microsoft SQL Server/Client SDK/ODBC/170/Tools/Binn:/mnt/c/Program Files (x86)/Intel/Intel(R) Management Engine Components/DAL:/mnt/c/Program Files/Intel/Intel(R) Management Engine Components/DAL:/mnt/c/Users/jw/AppData/Local/Microsoft/WindowsApps:/mnt/c/Users/jw/AppData/Local/Programs/Microsoft VS Code/bin:/mnt/c/Users/jw/.dotnet/tools:/snap/bin:/mnt/pi-toolchain/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin’
PWD=/proc/self/cwd
/home/jw/cross_gcc_9/cross-pi-gcc-9.3.0-2/bin/arm-linux-gnueabihf-gcc-9.3.0 -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -g0 -O2 ‘-D_FORTIFY_SOURCE=1’ -DNDEBUG -ffunction-sections -fdata-sections ‘-std=c++0x’ -MD -MF bazel-out/host/bin/external/org_tensorflow/tensorflow/core/platform/profile_utils/objs/profile_utils_cpu_utils/cpu_utils.d '-frandom-seed=bazel-out/host/bin/external/org_tensorflow/tensorflow/core/platform/profile_utils/objs/profile_utils_cpu_utils/cpu_utils.o’ -DEIGEN_MPL2_ONLY ‘-DEIGEN_MAX_ALIGN_BYTES=64’ -iquote external/org_tensorflow -iquote bazel-out/host/bin/external/org_tensorflow -iquote external/eigen_archive -iquote bazel-out/host/bin/external/eigen_archive -iquote external/com_google_absl -iquote bazel-out/host/bin/external/com_google_absl -iquote external/nsync -iquote bazel-out/host/bin/external/nsync -isystem external/org_tensorflow/third_party/eigen3/mkl_include -isystem bazel-out/host/bin/external/org_tensorflow/third_party/eigen3/mkl_include -isystem external/eigen_archive -isystem bazel-out/host/bin/external/eigen_archive -isystem external/nsync/public -isystem bazel-out/host/bin/external/nsync/public -g0 -w -g0 ‘-std=c++14’ -DEIGEN_AVOID_STL_ARRAY -Iexternal/gemmlowp -Wno-sign-compare ‘-ftemplate-depth=900’ -fno-exceptions -DINTEL_MKL -msse3 -DTENSORFLOW_MONOLITHIC_BUILD -pthread -fno-canonical-system-headers -Wno-builtin-macro-redefined '-D__DATE=“redacted”’ '-D__TIMESTAMP=“redacted”’ ‘-D__TIME__=“redacted”’ -c external/org_tensorflow/tensorflow/core/platform/profile_utils/cpu_utils.cc -o bazel-out/host/bin/external/org_tensorflow/tensorflow/core/platform/profile_utils/_objs/profile_utils_cpu_utils/cpu_utils.o)
Execution platform: @local_execution_config_platform//:platform
arm-linux-gnueabihf-gcc-9.3.0: error: unrecognized command line option ‘-msse3’
Target //:beginner_cc failed to build```
from yggdrasil-decision-forests.
Btw, how did you start bazel when you tried to cross compile ? And which version of gcc (?) where you using ?
from yggdrasil-decision-forests.
export CC=path_to_cross_compiler
export CXX=path_to_cross_compiler_g++
bazel build --config=linux_cpp17 //:beginner_cc
gcc 9 from: https://github.com/abhiTronix/raspberry-pi-cross-compilers for armv7
gnu toolchain for arm64 (this one was 10.3)
https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-a/downloads
from yggdrasil-decision-forests.
Yggdrasil can now be compiled and run (both the training and inference) on Arm7.
This documentation shows how to compile and run it on a Raspberry Pi 4 Model B Rev 1.4.
I hope this help :)
from yggdrasil-decision-forests.
Related Issues (20)
- getting protobuf downgrading issue HOT 3
- read model information HOT 4
- extract model input features with dtypes HOT 7
- Cannot install in pip3.11 HOT 4
- Error compiling CLI in OSX HOT 9
- How to compile examples out of bazel HOT 5
- Issue on page /tutorial.html HOT 2
- may you help to understand how unbalanced data treaded in your code? HOT 4
- in which file you read all data sets from your paper HOT 3
- Documentation for using Go is out of date HOT 1
- Go module buried in this repo prevents the module importing properly HOT 14
- Go module only supports binary classification HOT 1
- Go model serving does not support DISCRETIZED_NUMERICAL HOT 4
- Running quick Scorer Extended Model HOT 2
- Windows Build Fails - Compiling .cc files results in syntax error HOT 2
- Missing whitespace on page /cli_install.html and please use sudo in build_binary_release.sh HOT 5
- Don't pollute my home !! HOT 1
- minor typo on page /intro_df.html HOT 1
- Cannot import ydf from windows vsc HOT 5
- Cannot compile standalone example on macOS HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yggdrasil-decision-forests.