diff options
author | 2018-08-06 13:34:24 -0700 | |
---|---|---|
committer | 2018-08-06 13:34:24 -0700 | |
commit | 1149ad359f4e51a4e2c37a1dab8112056a38ef9b (patch) | |
tree | 5b5e99bc5e3c6d6859620d45a595bbaaec9d0f9d /tensorflow/python/BUILD | |
parent | 46c2eafd65fd55d0837a9a86e8843f7f6d615990 (diff) | |
parent | 9e35139d16bf259794a23e60c9f2b3f4e38c3b48 (diff) |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'tensorflow/python/BUILD')
-rw-r--r-- | tensorflow/python/BUILD | 102 |
1 files changed, 96 insertions, 6 deletions
diff --git a/tensorflow/python/BUILD b/tensorflow/python/BUILD index 83b82aa0cc..456f007348 100644 --- a/tensorflow/python/BUILD +++ b/tensorflow/python/BUILD @@ -835,8 +835,10 @@ py_library( deps = [ ":c_api_util", ":control_flow_util", + ":cpp_shape_inference_proto_py", ":device", ":dtypes", + ":error_interpolation", ":op_def_registry", ":platform", ":registry", @@ -3216,14 +3218,18 @@ py_library( "training/checkpointable/**/*.py", # The following targets have their own build rules (same name as the # file): + "training/checkpoint_management.py", "training/saveable_object.py", + "training/saver.py", "training/training_util.py", ], ), srcs_version = "PY2AND3", deps = [ + "saver", ":array_ops", ":array_ops_gen", + ":checkpoint_management", ":checkpoint_ops_gen", ":client", ":control_flow_ops", @@ -3235,24 +3241,20 @@ py_library( ":framework_ops", ":gradients", ":init_ops", - ":distribute", ":io_ops", - ":io_ops_gen", ":layers_base", - ":lib", ":lookup_ops", ":math_ops", ":platform", - ":protos_all_py", ":pywrap_tensorflow", ":random_ops", ":resource_variable_ops", ":resources", - ":saveable_object", ":sdca_ops", + ":session", ":sparse_ops", + ":sparse_tensor", ":state_ops", - ":string_ops", ":summary", ":training_ops_gen", ":training_util", @@ -3262,6 +3264,7 @@ py_library( "//third_party/py/numpy", "@six_archive//:six", "//tensorflow/core:protos_all_py", + "//tensorflow/python/data/ops:dataset_ops", "//tensorflow/python/eager:backprop", "//tensorflow/python/eager:context", # `layers` dependency only exists due to the use of a small utility. @@ -3279,6 +3282,52 @@ py_library( ) py_library( + name = "checkpoint_management", + srcs = ["training/checkpoint_management.py"], + deps = [ + ":errors", + ":lib", + ":platform", + ":protos_all_py", + ":util", + "//tensorflow/core:protos_all_py", + ], +) + +py_library( + name = "saver", + srcs = ["training/saver.py"], + srcs_version = "PY2AND3", + deps = [ + ":array_ops", + ":checkpoint_management", + ":constant_op", + ":control_flow_ops", + ":device", + ":errors", + ":framework", + ":framework_ops", + ":io_ops", + ":io_ops_gen", + ":platform", + ":pywrap_tensorflow", + ":resource_variable_ops", + ":saveable_object", + ":session", + ":state_ops", + ":string_ops", + ":training_util", + ":util", + ":variables", + "//tensorflow/core:protos_all_py", + "//tensorflow/python/eager:context", + "//tensorflow/python/training/checkpointable:base", + "//third_party/py/numpy", + "@six_archive//:six", + ], +) + +py_library( name = "device_util", srcs = ["training/device_util.py"], srcs_version = "PY2AND3", @@ -4388,6 +4437,42 @@ cuda_py_test( tags = ["multi_gpu"], ) +cuda_py_test( + name = "checkpoint_management_test", + size = "small", + srcs = [ + "training/checkpoint_management_test.py", + ], + additional_deps = [ + ":array_ops", + ":client_testlib", + ":control_flow_ops", + ":data_flow_ops", + ":errors", + ":gradients", + ":math_ops", + ":nn_grad", + ":nn_ops", + ":saver_test_utils", + ":partitioned_variables", + ":platform", + ":platform_test", + ":pywrap_tensorflow", + ":random_ops", + ":resource_variable_ops", + ":sparse_ops", + ":summary", + ":training", + ":util", + ":variable_scope", + ":variables", + "//third_party/py/numpy", + "@six_archive//:six", + "//tensorflow/core:protos_all_py", + "//tensorflow/python/data/ops:dataset_ops", + ], +) + py_test( name = "saver_large_variable_test", size = "medium", @@ -4454,6 +4539,7 @@ tf_py_test( srcs = ["training/supervisor_test.py"], additional_deps = [ ":array_ops", + ":checkpoint_management", ":client_testlib", ":errors", ":framework", @@ -4461,6 +4547,7 @@ tf_py_test( ":io_ops", ":parsing_ops", ":platform", + ":saver", ":summary", ":training", ":variables", @@ -4574,10 +4661,13 @@ py_test( tags = ["notsan"], # b/67945581 deps = [ ":array_ops", + ":checkpoint_management", ":client_testlib", ":control_flow_ops", ":errors", ":framework_for_generated_wrappers", + ":resource_variable_ops", + ":saver", ":session", ":state_ops", ":summary", |