aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/core/common_runtime
diff options
context:
space:
mode:
authorGravatar Bairen Yi <byi@connect.ust.hk>2018-09-18 13:17:07 +0800
committerGravatar Bairen Yi <byi@connect.ust.hk>2018-09-18 13:17:07 +0800
commit5d51afdfec8c6a96d48457d4678e2835100577a6 (patch)
tree8adc5d0fd3e6632d0be71d38c88cec9d749cb06a /tensorflow/core/common_runtime
parenta6ee64cd216b3ac440262e1f4ec7872fe7026df6 (diff)
Support scoped_allocator_ops for renamed device.
This fixes #22274. Signed-off-by: Bairen Yi <byi@connect.ust.hk>
Diffstat (limited to 'tensorflow/core/common_runtime')
-rw-r--r--tensorflow/core/common_runtime/renamed_device.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/tensorflow/core/common_runtime/renamed_device.h b/tensorflow/core/common_runtime/renamed_device.h
index 103eee03b3..caf1300d85 100644
--- a/tensorflow/core/common_runtime/renamed_device.h
+++ b/tensorflow/core/common_runtime/renamed_device.h
@@ -58,6 +58,15 @@ class RenamedDevice : public Device {
return underlying_->GetAllocator(attr);
}
+ Allocator* GetScopedAllocator(AllocatorAttributes attr,
+ int64 step_id) override {
+ return underlying_->GetScopedAllocator(attr, step_id);
+ }
+
+ ScopedAllocatorMgr* GetScopedAllocatorMgr() const override {
+ return underlying_->GetScopedAllocatorMgr();
+ }
+
const Eigen::ThreadPoolDevice* eigen_cpu_device() override {
return underlying_->eigen_cpu_device();
}