Home | History | Annotate | Download | only in compat
      1 # Description:
      2 # For keeping the history of OpDefs for every major version of TensorFlow,
      3 # to validate that we don't make backwards-incompatible changes.
      4 
      5 package(
      6     default_visibility = ["//visibility:private"],
      7 )
      8 
      9 licenses(["notice"])  # Apache 2.0
     10 
     11 exports_files(["LICENSE"])
     12 
     13 load(
     14     "//tensorflow:tensorflow.bzl",
     15     "tf_cc_test",
     16     "tf_cc_binary",
     17 )
     18 
     19 cc_library(
     20     name = "op_compatibility_lib",
     21     srcs = ["op_compatibility_lib.cc"],
     22     hdrs = ["op_compatibility_lib.h"],
     23     visibility = ["//visibility:public"],
     24     deps = [
     25         "//tensorflow/core:debug_ops_op_lib",
     26         "//tensorflow/core:framework",
     27         "//tensorflow/core:lib",
     28         "//tensorflow/core:ops",
     29         "//tensorflow/core:protos_all_cc",
     30     ],
     31 )
     32 
     33 tf_cc_test(
     34     name = "backwards_compatibility_test",
     35     size = "small",
     36     srcs = ["backwards_compatibility_test.cc"],
     37     data = [
     38         ":ops_history.v0.pbtxt",
     39         ":ops_history.v1.pbtxt",
     40         "//tensorflow/core:ops/ops.pbtxt",
     41     ],
     42     deps = [
     43         ":op_compatibility_lib",
     44         "//tensorflow/core:framework",
     45         "//tensorflow/core:lib",
     46         "//tensorflow/core:test",
     47         "//tensorflow/core:test_main",
     48     ],
     49 )
     50 
     51 tf_cc_binary(
     52     name = "update_ops",
     53     srcs = ["update_ops_main.cc"],
     54     deps = [
     55         ":op_compatibility_lib",
     56         "//tensorflow/core:framework",
     57         "//tensorflow/core:lib",
     58     ],
     59 )
     60 
     61 # -----------------------------------------------------------------------------
     62 # Google-internal targets.  These must be at the end for syncrepo.
     63 
     64 filegroup(
     65     name = "all_files",
     66     srcs = glob(
     67         ["**/*"],
     68         exclude = [
     69             "**/METADATA",
     70             "**/OWNERS",
     71         ],
     72     ),
     73     visibility = ["//tensorflow:__subpackages__"],
     74 )
     75