diff options
Diffstat (limited to 'tensorflow/core/framework/resource_mgr.h')
-rw-r--r-- | tensorflow/core/framework/resource_mgr.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tensorflow/core/framework/resource_mgr.h b/tensorflow/core/framework/resource_mgr.h index f8a587c9b5..d58deaa3fc 100644 --- a/tensorflow/core/framework/resource_mgr.h +++ b/tensorflow/core/framework/resource_mgr.h @@ -79,7 +79,7 @@ class ResourceBase : public core::RefCounted { virtual string DebugString() = 0; // Returns memory used by this resource. - virtual int64 MemoryUsed() const { return 0; }; + virtual int64 MemoryUsed() const { return 0; } }; // Container used for per-step resources. @@ -234,7 +234,7 @@ ResourceHandle MakePerStepResourceHandle(OpKernelContext* ctx, const string& name); // Returns a resource handle from a numbered op input. -ResourceHandle HandleFromInput(OpKernelContext* ctx, int input); +const ResourceHandle& HandleFromInput(OpKernelContext* ctx, int input); Status HandleFromInput(OpKernelContext* ctx, StringPiece input, ResourceHandle* handle); @@ -348,6 +348,8 @@ class ResourceHandleOp : public OpKernel { void Compute(OpKernelContext* ctx) override; + bool IsExpensive() override { return false; } + private: string container_; string name_; |