Add missing `override' (#17098)
authorDaniel Trebbien <dtrebbien@gmail.com>
Mon, 26 Feb 2018 21:42:07 +0000 (13:42 -0800)
committerAppledore <weikqin@gmail.com>
Mon, 26 Feb 2018 21:42:07 +0000 (13:42 -0800)
This fixes a warning produced by clang:
./tensorflow/core/common_runtime/gpu/gpu_device.h:70:10: warning: 'FillContextMap' overrides a member function but is not marked 'override' [-Winconsistent-missing-override]
  Status FillContextMap(const Graph* graph,
         ^
./tensorflow/core/common_runtime/device.h:124:18: note: overridden virtual function is here
  virtual Status FillContextMap(const Graph* graph,

tensorflow/core/common_runtime/gpu/gpu_device.h

index c88daa8..d817c7d 100644 (file)
@@ -68,7 +68,7 @@ class BaseGPUDevice : public LocalDevice {
       const TensorReferenceVector& tensor_refs) override;
 
   Status FillContextMap(const Graph* graph,
-                        DeviceContextMap* device_context_map);
+                        DeviceContextMap* device_context_map) override;
 
   void Compute(OpKernel* op_kernel, OpKernelContext* context) override;