Build tensorflow 2.7.0
bazel build --compilation_mode=opt --jobs=4 --config=macos_arm64 tensorflow:libtensorflow.so
bazel build --compilation_mode=opt --jobs=4 --config=macos_arm64 tensorflow/tools/lib_package:libtensorflow
Export variables
export TF_VERSION=v2.7.0
export PKG_CONFIG_PATH=$HOME/.pkg-config