diff options
Diffstat (limited to 'third_party/ngraph/build_defs.bzl')
-rw-r--r-- | third_party/ngraph/build_defs.bzl | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/third_party/ngraph/build_defs.bzl b/third_party/ngraph/build_defs.bzl new file mode 100644 index 0000000000..3c34be524b --- /dev/null +++ b/third_party/ngraph/build_defs.bzl @@ -0,0 +1,11 @@ +"""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, + }) |