github.com/johnnyeven/libtools@v0.0.0-20191126065708-61829c1adf46/third_party/ngraph/build_defs.bzl (about) 1 """Build configurations for nGraph.""" 2 3 def clean_dep(dep): 4 return str(Label(dep)) 5 6 def if_ngraph(if_true, if_false = []): 7 """select()'ing on whether we're building with nGraph support.""" 8 return select({ 9 clean_dep("//tensorflow:with_ngraph_support"): if_true, 10 "//conditions:default": if_false, 11 })