1 # Legacy command line flags for the XLA bridge libraries. 2 3 # Please do not add more flags to this package. 4 5 # The XLA bridge libraries were written in an environment that allowed 6 # command-line flags to be scattered freely throughout the libraries. This 7 # model, while initially convenient, leads to a proliferation in unused command 8 # line flags in tests and binaries, and serious problems in servers, where one 9 # might wish parameters to be different in independent RPC calls to the same 10 # routine. 11 # 12 # Please don't add more flags. If you're a library author, pass options and 13 # parameters explicitly through the library's interface. 14 15 licenses(["notice"]) # Apache 2.0 16 17 package(default_visibility = ["//tensorflow:internal"]) 18 19 cc_library( 20 name = "encapsulate_subgraphs_pass_flags", 21 srcs = ["encapsulate_subgraphs_pass_flags.cc"], 22 hdrs = ["encapsulate_subgraphs_pass_flags.h"], 23 deps = 24 [ 25 "//tensorflow/compiler/xla/legacy_flags:parse_flags_from_env", 26 "//tensorflow/core:framework_internal", 27 "//tensorflow/core:lib", 28 ], 29 ) 30 31 cc_library( 32 name = "mark_for_compilation_pass_flags", 33 srcs = ["mark_for_compilation_pass_flags.cc"], 34 hdrs = ["mark_for_compilation_pass_flags.h"], 35 deps = 36 [ 37 "//tensorflow/compiler/xla/legacy_flags:parse_flags_from_env", 38 "//tensorflow/core:framework_internal", 39 "//tensorflow/core:lib", 40 ], 41 ) 42 43 cc_library( 44 name = "parallel_check_op_flags", 45 srcs = ["parallel_check_op_flags.cc"], 46 hdrs = ["parallel_check_op_flags.h"], 47 deps = 48 [ 49 "//tensorflow/compiler/xla/legacy_flags:parse_flags_from_env", 50 "//tensorflow/core:framework_internal", 51 "//tensorflow/core:lib", 52 ], 53 ) 54 55 # ----------------------------------------------------------------------------- 56 57 filegroup( 58 name = "all_files", 59 srcs = glob( 60 ["**/*"], 61 exclude = [ 62 "**/METADATA", 63 "**/OWNERS", 64 ], 65 ), 66 visibility = ["//tensorflow:__subpackages__"], 67 ) 68