Home | History | Annotate | Download | only in copy_graph
      1 # Description:
      2 #   contains parts of TensorFlow that are experimental or unstable and which are not supported.
      3 
      4 licenses(["notice"])  # Apache 2.0
      5 
      6 exports_files(["LICENSE"])
      7 
      8 package(default_visibility = ["//tensorflow:__subpackages__"])
      9 
     10 load("//tensorflow:tensorflow.bzl", "py_test")
     11 
     12 py_library(
     13     name = "copy_graph_py",
     14     srcs = [
     15         "__init__.py",
     16         "python/util/__init__.py",
     17         "python/util/copy_elements.py",
     18     ],
     19     srcs_version = "PY2AND3",
     20     deps = [
     21         "//tensorflow/python:framework_for_generated_wrappers",
     22         "//tensorflow/python:session",
     23         "//tensorflow/python:util",
     24         "//tensorflow/python:variables",
     25     ],
     26 )
     27 
     28 py_test(
     29     name = "copy_test",
     30     srcs = glob(["python/util/copy_test.py"]),
     31     srcs_version = "PY2AND3",
     32     deps = [
     33         ":copy_graph_py",
     34         "//tensorflow/contrib/framework:framework_py",
     35         "//tensorflow/python:array_ops",
     36         "//tensorflow/python:client_testlib",
     37         "//tensorflow/python:framework_for_generated_wrappers",
     38         "//tensorflow/python:math_ops",
     39         "//tensorflow/python:session",
     40         "//tensorflow/python:variables",
     41         "//third_party/py/numpy",
     42     ],
     43 )
     44 
     45 filegroup(
     46     name = "all_files",
     47     srcs = glob(
     48         ["**/*"],
     49         exclude = [
     50             "**/METADATA",
     51             "**/OWNERS",
     52         ],
     53     ),
     54     visibility = ["//tensorflow:__subpackages__"],
     55 )
     56