You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am interested in using the Yggdrasil library for a C++ project, but I am having issues compiling the dylib on macOS.
In fact, I am not even able to compile the standalone example provided. Given the latest commit (as of Dec 18), I have tried modifying the compile_and_run.sh file so that line 29 reads:
bazel build --config=macos //:beginner_cc
Nevertheless, I get an error related to @org_tensorflow being unresolvable:
I saw that in line 19 of WORKSPACE there is a flag that seems to exclude tensorflow from the workspace, so I tried removing that. Unfortunately, it did not solve the issue and a similar error related to tensorflow popped up. I have admittedly little idea of how bazel works and would appreciate any help you could provide. Thank you!
The text was updated successfully, but these errors were encountered:
Hi, thanks for reporting this, that's a documentation bug / a bug in the compile_and_run script.
If you do not need TensorFlow support (i.e. TFRecord files), you can compile with
# running from the top directory of the repository
bazel build --config=macos --define=use_ydf_tensorflow_proto=1 //examples:beginner_cc
./bazel-bin/examples/beginner_cc --dataset_dir=yggdrasil_decision_forests/test_data/dataset --output_dir=/tmp/yggdrasil_decision_forest
If you need TensorFlow support, you need to override the WORKSPACE file with WORKSPACE_WITH_TF, i.e.
# running from the top directory of the repository
cp WORKSPACE_WITH_TF WORKSPACE
bazel build --config=macos //examples:beginner_cc
./bazel-bin/examples/beginner_cc --dataset_dir=yggdrasil_decision_forests/test_data/dataset --output_dir=/tmp/yggdrasil_decision_forest
Compilation with TensorFlow support will take more time (just downloading TF + dependencies probably takes a few minutes).
I'll keep this open until the documentation and script are updated.
Hi,
I am interested in using the Yggdrasil library for a C++ project, but I am having issues compiling the dylib on macOS.
In fact, I am not even able to compile the standalone example provided. Given the latest commit (as of Dec 18), I have tried modifying the
compile_and_run.sh
file so that line 29 reads:Nevertheless, I get an error related to
@org_tensorflow
being unresolvable:I saw that in line 19 of
WORKSPACE
there is a flag that seems to exclude tensorflow from the workspace, so I tried removing that. Unfortunately, it did not solve the issue and a similar error related to tensorflow popped up. I have admittedly little idea of how bazel works and would appreciate any help you could provide. Thank you!The text was updated successfully, but these errors were encountered: