You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[XLA] [macOS] tfcompile via tf_library does not work on macOS #10060
I am trying to compile a model using XLA on macOS. I know the XLA is still in experimental stage, but I would be happy to help fix the problem. The problem can be reproduced from supplied tests, i.e: tensorflow/compiler/aot/tests:test_graph_tfadd.
def target_llvm_triple():
"""Returns the target LLVM triple to be used for compiling the target."""
# TODO(toddw): Add target_triple for other targets. For details see:
# http://llvm.org/docs/doxygen/html/Triple_8h_source.html
return select({
"//tensorflow:android_arm": "armv7-none-android",
"//tensorflow:android_arm64": "aarch64-none-android",
"//tensorflow:android_x86": "i686-none-android",
"//tensorflow:linux_ppc64le": "ppc64le-ibm-linux-gnu",
"//conditions:default": "x86_64-pc-linux",
})
Adding
"//tensorflow:darwin": "x86_64-none-darwin",
fixes the problem. I can provide a pull request for that, but it seems there are more targets missing.
Maybe someone with more overview of supported platforms (@tatatodd ?) can take a look here.
I think we may have missed this, as XLA is still listed as experimental.
Your fix looks correct to me.
Would you like to contribute the fix with a pull request?
Activity
fwinnen commentedon May 20, 2017
Ok, I found the Problem:
file: tensorflow/compiler/aot/tfcompile.bzl:277
Adding
fixes the problem. I can provide a pull request for that, but it seems there are more targets missing.
Maybe someone with more overview of supported platforms (@tatatodd ?) can take a look here.
gunan commentedon May 22, 2017
I think we may have missed this, as XLA is still listed as experimental.
Your fix looks correct to me.
Would you like to contribute the fix with a pull request?
[xla:ffi] Unit tests for CPU type-safe custom call API
[xla:ffi] Unit tests for CPU type-safe custom call API
[xla:ffi] Unit tests for CPU type-safe custom call API
[xla:ffi] Unit tests for CPU type-safe custom call API
[xla:ffi] Unit tests for CPU type-safe custom call API
[xla:ffi] Unit tests for CPU type-safe custom call API
[xla:ffi] Improve error messages in custom call tests
[xla:ffi] Improve error messages in custom call tests
[xla:ffi] Improve error messages in custom call tests
[xla:ffi] Adapt CPU custom call tests to changes in typed FFI API
[xla:ffi] Adapt CPU custom call tests to changes in typed FFI API
[xla:ffi] Adapt CPU custom call tests to changes in typed FFI API
[xla:ffi] Adapt CPU custom call tests to changes in typed FFI API
Update XNNPACK in XLA
Update XNNPACK in XLA
Update XNNPACK in XLA
Update XNNPACK in XLA
Update XNNPACK in XLA
Update XNNPACK in XLA
Update XNNPACK in XLA
Update XNNPACK in XLA
Update XNNPACK in XLA