@@ -87,80 +87,7 @@ For more models, go to [**tensorflow/swift-models**][swift-models].
8787
8888## Development
8989
90- ### Requirements
91-
92- * [ Swift for TensorFlow toolchain] [ toolchain ] .
93- * An environment that can run the Swift for TensorFlow toolchains: Ubuntu 18.04, macOS with Xcode 10, or Windows 10.
94- * Bazel. This can be installed [ manually] [ bazel ] or with
95- [ Bazelisk] [ bazelisk ] . You will need a version supported by TensorFlow
96- (between ` _TF_MIN_BAZEL_VERSION ` and ` _TF_MAX_BAZEL_VERSION ` as specified in
97- [ tensorflow/configure.py] [ configure.py ] ).
98- * Python3 with [ numpy] [ numpy ] .
99- * CMake. CMake 3.16 or newer is required to build with CMake.
100-
101- ### Building and testing
102-
103- #### SwiftPM
104-
105- * Note: Building with SwiftPM does not include changes to X10 modules.*
106-
107- ``` shell
108- $ swift build
109- ```
110-
111- * Note: Testing with SwiftPM does not run X10 tests.*
112-
113- ``` shell
114- $ swift test
115- ```
116-
117- #### CMake
118-
119- * Note: CMake is required for building X10 modules.*
120-
121- In-tree builds are not supported.
122-
123- * Note: To enable CUDA support, run ` export TF_NEED_CUDA=1 ` before the steps below.*
124-
125- * Note: If ` swiftc ` is not in your ` PATH ` , you must specify the path to it using
126- ` -D CMAKE_Swift_COMPILER= ` .*
127-
128- This will build X10 as part of the build. Ensure that you do not have the
129- x10 modules in the toolchain that you are using to develop here.
130-
131- ``` shell
132- cmake -B out -G Ninja -S swift-apis
133- cmake --build out
134- ```
135-
136- To run tests:
137-
138- * Note: To view failure output, run ` export CTEST_OUTPUT_ON_FAILURE=1 ` before
139- running tests.*
140-
141- ``` shell
142- cmake --build out --target test
143- ```
144-
145- If you are not intending to develop X10, you can reduce the build times by
146- using the bundled X10 in the toolchain using
147- ` -D USE_BUNDLED_X10=YES -D USE_BUNDLED_CTENSORFLOW=YES ` :
148-
149- ``` shell
150- cmake -B out -D USE_BUNDLED_CTENSORFLOW=YES -D USE_BUNDLED_X10=YES -G Ninja -S swift-apis
151- cmake --build out
152- cmake --build out --target test
153- ```
154-
155- #### macOS
156-
157- On macOS, passing ` -D BUILD_TESTING=NO ` is currently necessary to skip building
158- tests. This avoids an error: ` cannot load underlying module for 'XCTest' ` .
159-
160- ``` shell
161- cmake -B out -D USE_BUNDLED_CTENSORFLOW=YES -D USE_BUNDLED_X10=YES -D BUILD_TESTING=NO -G Ninja -S swift-apis
162- cmake --build out
163- ```
90+ Documentation covering development can be found in the [ Developer Guide] ( Documentation/Development.md ) .
16491
16592## Bugs
16693
0 commit comments