mirror of
https://github.com/tensorflow/tensorflow.git
synced 2026-10-26 00:09:51 +08:00
Imported from GitHub PR https://github.com/tensorflow/tensorflow/pull/102891 See #62598. Add basic bzlmod support on Linux x86 CPU. Most of the incompatibilities have been resolved. Running tests with: ``` env TFCI=py311,linux_x86,rbe,bzlmod,no_docker ci/official/pycpp.sh ``` should pass except for those in tensorflow/tools/pip_package A known issue is with building the wheels. The issues are two fold: 1. In particular, in WORKSPACE setup an old version of pybind11_abseil is used. I can't find a version of pybind11_abseil with bzlmod support that works. The reason is that TensorFlow implicitly requires the `ImportStatusModule(bypass_regular_import = true)` which is not supported in latest version of pybind11_abseil. 2. The wheel building script packages some headers and python modules from external repos (XLA, TSL, local_config_cuda). Under bzlmod they will be in a different path. pcloudy@ suggested some tricks to handle this for a single directory by passing the path as environment variable, but considering many are used for building wheels, we should find a better way. Reasons for duplicating the patches on absl/grpc: bzlmod does not support applying patches across module boundary. Copybara import of the project: -- 99f6ec365e83b2a188399e050ac67865888e91c2 by Yicheng Luo <ethanluoyc@gmail.com>: Support bzlmod Merging this change closes #102891 COPYBARA_INTEGRATE_REVIEW=https://github.com/tensorflow/tensorflow/pull/102891 from ethanluoyc:bzlmod aa56a78ea1adce56262937ee79bcf61db530ba05 PiperOrigin-RevId: 885201845
55 lines
963 B
Plaintext
55 lines
963 B
Plaintext
MODULE.bazel.lock
|
|
.DS_Store
|
|
.ipynb_checkpoints
|
|
node_modules
|
|
/.bazelrc.user
|
|
/.tf_configure.bazelrc
|
|
/xla_configure.bazelrc
|
|
/bazel-*
|
|
/bazel_pip
|
|
/tools/python_bin_path.sh
|
|
/tensorflow/tools/git/gen
|
|
/pip_test
|
|
/_python_build
|
|
*.pyc
|
|
__pycache__
|
|
*.swp
|
|
.vscode/
|
|
cmake_build/
|
|
tensorflow/contrib/cmake/_build/
|
|
.idea/**
|
|
/build/
|
|
[Bb]uild/
|
|
/build_output/
|
|
/tensorflow/core/util/version_info.cc
|
|
/tensorflow/python/framework/fast_tensor_util.cpp
|
|
/tensorflow/lite/gen/**
|
|
/tensorflow/lite/tools/make/downloads/**
|
|
/tensorflow/lite/tools/make/gen/**
|
|
/api_init_files_list.txt
|
|
/estimator_api_init_files_list.txt
|
|
*.whl
|
|
dist
|
|
venv/
|
|
|
|
# Android
|
|
.gradle
|
|
.idea
|
|
*.iml
|
|
local.properties
|
|
gradleBuild
|
|
|
|
# iOS
|
|
*.pbxproj
|
|
*.xcworkspace
|
|
/*.podspec
|
|
/tensorflow/lite/**/coreml/**/BUILD
|
|
/tensorflow/lite/**/ios/BUILD
|
|
/tensorflow/lite/**/objc/BUILD
|
|
/tensorflow/lite/**/swift/BUILD
|
|
/tensorflow/lite/examples/ios/simple/data/*.tflite
|
|
/tensorflow/lite/examples/ios/simple/data/*.txt
|
|
Podfile.lock
|
|
Pods
|
|
xcuserdata
|