diff options
author | A. Unique TensorFlower <gardener@tensorflow.org> | 2018-09-19 14:16:14 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2018-09-19 14:19:54 -0700 |
commit | 8878a5c4761c025d47faa123fe4978f173f950c9 (patch) | |
tree | 4ef9e7fabaa6b630ceb4b18f1fc3638ad1aa8362 /tensorflow/core/example | |
parent | 7dac251a7e0f1cd8fd55dffff942fd9c91218627 (diff) |
Added ABSL_DEPRECATED annotations to various deprecated TensorFlow functions.
PiperOrigin-RevId: 213693027
Diffstat (limited to 'tensorflow/core/example')
-rw-r--r-- | tensorflow/core/example/feature_util.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tensorflow/core/example/feature_util.h b/tensorflow/core/example/feature_util.h index ec93b9aad9..016d1a92c1 100644 --- a/tensorflow/core/example/feature_util.h +++ b/tensorflow/core/example/feature_util.h @@ -103,6 +103,7 @@ limitations under the License. #include <iterator> #include <type_traits> +#include "absl/base/macros.h" #include "tensorflow/core/example/example.pb.h" #include "tensorflow/core/example/feature.pb.h" #include "tensorflow/core/lib/core/stringpiece.h" @@ -113,10 +114,10 @@ namespace tensorflow { namespace internal { -// DEPRECATED: Use GetFeature instead. // TODO(gorban): Update all clients in a followup CL. // Returns a reference to a feature corresponding to the name. // Note: it will create a new Feature if it is missing in the example. +ABSL_DEPRECATED("Use GetFeature instead.") Feature& ExampleFeature(const string& name, Example* example); // Specializations of RepeatedFieldTrait define a type of RepeatedField @@ -314,9 +315,9 @@ bool HasFeature(const string& key, const Example& example) { return HasFeature<FeatureType...>(key, GetFeatures(example)); } -// DEPRECATED: use HasFeature instead. // TODO(gorban): update all clients in a followup CL. template <typename... FeatureType> +ABSL_DEPRECATED("Use HasFeature instead.") bool ExampleHasFeature(const string& key, const Example& example) { return HasFeature<FeatureType...>(key, example); } |