MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / configure_ios

Function configure_ios

configure.py:1299–1313  ·  view source on GitHub ↗

Configures TensorFlow for iOS builds. This function will only be executed if `is_macos()` is true.

()

Source from the content-addressed store, hash-verified

1297
1298
1299def 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
1316def validate_cuda_config(environ_cp):

Callers 1

mainFunction · 0.85

Calls 3

is_macosFunction · 0.85
symlink_forceFunction · 0.85
joinMethod · 0.45

Tested by

no test coverage detected