-
Notifications
You must be signed in to change notification settings - Fork 343
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error Building from Source: ... in proto_lang_toolchain rule @com_google_protobuf//:cc_toolchain: '@com_google_protobuf/ #638
Comments
I think this error appears when using bazel 4.0.0 (bazelbuild/bazel#12887). We currently build with Bazel 3.7.2. Does changing that help? |
With Bazel 3.7.2 and clang:
|
In resource_mgr.h Tensorflow 2.4.1 the class ResourceBase : public core::RefCounted virtual Status AsGraphDef(GraphDefBuilder* builder, Node** out) const { return errors::Unimplemented("AsGraphDef not implemented for resource ", DebugString()); } The Apple Machine Learning version of tensorflow with GPU support for AMD Radeon is based upon tensorflow 2.4.1. |
I cloned the 2.4 tensorflow_text branch and built with bazel 3.7.2
|
I copied these shared library files from the Apple Tensorflow 2.4.1 environment libraries: E.g. /Users/davidlaxer/anaconda3/envs/tensorflow_mac/lib/python3.8/site-packages/tensorflow_text/python/ops/*.dylib
Tensorflow_text is running. |
Great! I'm happy to hear you got this running. We will be looking at trying to add the new mac targets soon. |
Also, thanks for including your steps and solution for others. |
Hi, I would like to use
|
Fixed,
|
on lastest version prepare_tf_dep.sh had som issue on m1 apple sed -i "s/project_version = 'REPLACE_ME'/project_version = '${tf_version}'/" oss_scripts/pip_package/setup.nightly.py short_commit_sha=$($installed_python -c 'import tensorflow as tf; print(tf.git_version)' | tail -1 | grep -oP '(?<=-g)[0-9a-f]*$') and other line.. that shell run on linux but apple cannot run.. |
You should be able to safely skip running it, and I'll update the build script to skip over running it in the m1 case. The prepare_tf_dep script's main purpose is to build against the exact version of TF you have installed and set the package version for tf-text. However, tensorflow-macos does not set the git_version used by the script, does not release nightlies, and builds against it aren't for pypi uploaded packages, so it shouldn't be needed for these cases. |
I am trying to build tensorflow-text in a condo environment with an Apple Machine Learning version of Tensorflow
on Big Sur on an Intel iMac w/AMD Radeon GPU.
I am using bazelisk
E.g.
$ bazelisk build --enable_runfiles oss_scripts/pip_package:build_pip_package
The text was updated successfully, but these errors were encountered: