Configures TensorFlow for iOS builds. This function will only be executed if `is_macos()` is true.
()
| 1297 | |
| 1298 | |
| 1299 | def configure_ios(): |
| 1300 | """Configures TensorFlow for iOS builds. |
| 1301 | |
| 1302 | This function will only be executed if `is_macos()` is true. |
| 1303 | """ |
| 1304 | if not is_macos(): |
| 1305 | return |
| 1306 | for filepath in APPLE_BAZEL_FILES: |
| 1307 | existing_filepath = os.path.join(_TF_WORKSPACE_ROOT, filepath + '.apple') |
| 1308 | renamed_filepath = os.path.join(_TF_WORKSPACE_ROOT, filepath) |
| 1309 | symlink_force(existing_filepath, renamed_filepath) |
| 1310 | for filepath in IOS_FILES: |
| 1311 | filename = os.path.basename(filepath) |
| 1312 | new_filepath = os.path.join(_TF_WORKSPACE_ROOT, filename) |
| 1313 | symlink_force(filepath, new_filepath) |
| 1314 | |
| 1315 | |
| 1316 | def validate_cuda_config(environ_cp): |
no test coverage detected