diff options
author | 2018-09-19 14:16:14 -0700 | |
---|---|---|
committer | 2018-09-19 14:19:54 -0700 | |
commit | 8878a5c4761c025d47faa123fe4978f173f950c9 (patch) | |
tree | 4ef9e7fabaa6b630ceb4b18f1fc3638ad1aa8362 /tensorflow/core/framework | |
parent | 7dac251a7e0f1cd8fd55dffff942fd9c91218627 (diff) |
Added ABSL_DEPRECATED annotations to various deprecated TensorFlow functions.
PiperOrigin-RevId: 213693027
Diffstat (limited to 'tensorflow/core/framework')
-rw-r--r-- | tensorflow/core/framework/device_base.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tensorflow/core/framework/device_base.h b/tensorflow/core/framework/device_base.h index 53ac639b4c..446c31b17f 100644 --- a/tensorflow/core/framework/device_base.h +++ b/tensorflow/core/framework/device_base.h @@ -20,6 +20,7 @@ limitations under the License. #include <string> #include <vector> +#include "absl/base/macros.h" #include "tensorflow/core/framework/tensor.h" #include "tensorflow/core/lib/core/errors.h" #include "tensorflow/core/lib/core/refcount.h" @@ -176,9 +177,9 @@ class DeviceBase { return nullptr; } - // DEPRECATED: Use `this->GetAllocator()` or `this->GetScopedAllocator()`. // This method is provided for backwards compatibility, and will be removed // in a future release. + ABSL_DEPRECATED("Use `this->GetAllocator()` or `this->GetScopedAllocator()`.") Allocator* GetStepAllocator(AllocatorAttributes attr, ResourceMgr*) { return GetAllocator(attr); } |