1load("//tensorflow/core/platform:rules_cc.bzl", "cc_library") 2load("//tensorflow:tensorflow.bzl", "tf_gen_op_wrapper_py") 3 4package( 5 default_visibility = ["//tensorflow/compiler/tf2xla:internal"], 6 licenses = ["notice"], # Apache 2.0 7) 8 9cc_library( 10 name = "xla_ops", 11 srcs = ["xla_ops.cc"], 12 deps = ["//tensorflow/core:framework"], 13 alwayslink = 1, 14) 15 16tf_gen_op_wrapper_py( 17 name = "xla_ops_wrapper_py", 18 out = "xla_ops.py", 19 deps = ["//tensorflow/compiler/jit/ops:xla_ops"], 20) 21 22py_library( 23 name = "xla_ops_grad", 24 srcs = ["xla_ops_grad.py"], 25 srcs_version = "PY3", 26 deps = ["//tensorflow/python:framework_ops"], 27) 28