kse-01/tensorflow/third_party/ngraph/build_defs.bzl
github-classroom[bot] 1122cdd8b0
Initial commit
2023-10-09 11:37:31 +00:00

11 lines
330 B (Stored with Git LFS)
Python

"""Build configurations for nGraph."""
def clean_dep(dep):
return str(Label(dep))
def if_ngraph(if_true, if_false = []):
"""select()'ing on whether we're building with nGraph support."""
return select({
clean_dep("//tensorflow:with_ngraph_support"): if_true,
"//conditions:default": if_false,
})