"//tensorflow/python:array_ops",
"//tensorflow/python:checkpointable",
"//tensorflow/python:control_flow_ops",
+ "//tensorflow/python:device_util",
+ "//tensorflow/python:distribute",
"//tensorflow/python:framework_ops",
"//tensorflow/python:training",
"//tensorflow/python:util",
"//tensorflow/python:training",
"//tensorflow/python:variable_scope",
"//tensorflow/python/eager:context",
+ "//tensorflow/python:device_util",
"//tensorflow/python/eager:test",
"//tensorflow/python/estimator:model_fn",
],
":values",
"//tensorflow/python:array_ops",
"//tensorflow/python:device",
+ "//tensorflow/python:device_util",
+ "//tensorflow/python:distribute",
"//tensorflow/python:framework_ops",
"//tensorflow/python:pywrap_tensorflow",
"//tensorflow/python:training",
":values",
"//tensorflow/contrib/eager/python:datasets",
"//tensorflow/python:array_ops",
+ "//tensorflow/python:distribute",
"//tensorflow/python:framework_ops",
"//tensorflow/python:math_ops",
- "//tensorflow/python:training",
"//tensorflow/python/eager:context",
"@six_archive//:six",
],
"//tensorflow/core:protos_all_py",
"//tensorflow/python:array_ops",
"//tensorflow/python:constant_op",
+ "//tensorflow/python:distribute",
"//tensorflow/python:framework_ops",
"//tensorflow/python:layers",
"//tensorflow/python:training",
deps = [
":mirrored_strategy",
":strategy_test_lib",
+ "//tensorflow/python:distribute",
"//tensorflow/python:framework_test_lib",
- "//tensorflow/python:training",
"//tensorflow/python:variable_scope",
"//tensorflow/python/eager:context",
"//tensorflow/python/eager:test",
":mirrored_strategy",
":values",
":strategy_test_lib",
+ "//tensorflow/python:distribute",
"//tensorflow/core:protos_all_py",
"//tensorflow/python:constant_op",
"//tensorflow/python:layers",
- "//tensorflow/python:training",
"//tensorflow/python:variable_scope",
"//tensorflow/python:array_ops",
"//tensorflow/python:framework_test_lib",
srcs_version = "PY2AND3",
deps = [
"//tensorflow/python:control_flow_ops",
+ "//tensorflow/python:distribute",
"//tensorflow/python:framework",
"//tensorflow/python:math_ops",
"//tensorflow/python:resource_variable_ops",
":framework_ops",
":gradients",
":init_ops",
+ ":distribute",
":io_ops",
":io_ops_gen",
":layers_base",
],
)
+py_library(
+ name = "device_util",
+ srcs = ["training/device_util.py"],
+ srcs_version = "PY2AND3",
+ deps = [
+ ":device",
+ ":framework_ops",
+ "//tensorflow/python/eager:context",
+ ],
+)
+
+py_library(
+ name = "distribute",
+ srcs = ["training/distribute.py"],
+ srcs_version = "PY2AND3",
+ deps = [
+ ":array_ops",
+ ":control_flow_ops",
+ ":device_util",
+ ":framework_ops",
+ ":platform",
+ ":resource_variable_ops",
+ ":state_ops",
+ ":util",
+ ":variable_scope",
+ "//tensorflow/python/ops/losses",
+ ],
+)
+
py_test(
name = "checkpointable_utils_test",
srcs = ["training/checkpointable_utils_test.py"],
srcs_version = "PY2AND3",
deps = [
":client_testlib",
- ":training",
+ ":distribute",
":variable_scope",
],
)
srcs_version = "PY2AND3",
visibility = ["//visibility:public"],
deps = [
+ ":distribute",
":framework",
":framework_for_generated_wrappers",
":platform",
"//tensorflow/python:array_ops",
"//tensorflow/python:boosted_trees_ops",
"//tensorflow/python:data_flow_ops",
+ "//tensorflow/python:distribute",
"//tensorflow/python:dtypes",
"//tensorflow/python:framework_ops",
"//tensorflow/python:lookup_ops",
"//tensorflow/python:client_testlib",
"//tensorflow/python:constant_op",
"//tensorflow/python:control_flow_ops",
+ "//tensorflow/python:distribute",
"//tensorflow/python:dtypes",
"//tensorflow/python:framework_ops",
"//tensorflow/python:math_ops",
":model_fn",
":optimizers",
"//tensorflow/python:control_flow_ops",
+ "//tensorflow/python:distribute",
"//tensorflow/python:framework_ops",
"//tensorflow/python:init_ops",
"//tensorflow/python:layers",
"//tensorflow/core:protos_all_py",
"//tensorflow/python:client",
"//tensorflow/python:control_flow_ops",
+ "//tensorflow/python:distribute",
"//tensorflow/python:framework_for_generated_wrappers",
"//tensorflow/python:metrics",
"//tensorflow/python:platform",
"//tensorflow/python:client_testlib",
"//tensorflow/python:control_flow_ops",
"//tensorflow/python:data_flow_ops",
+ "//tensorflow/python:distribute",
"//tensorflow/python:dtypes",
"//tensorflow/python:framework_ops",
"//tensorflow/python:math_ops",
deps = [
":engine",
"//tensorflow/python:array_ops",
+ "//tensorflow/python:distribute",
"//tensorflow/python:dtypes",
"//tensorflow/python:framework_ops",
"//tensorflow/python:logging_ops",