aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/core/common_runtime/local_device.h
diff options
context:
space:
mode:
Diffstat (limited to 'tensorflow/core/common_runtime/local_device.h')
-rw-r--r--tensorflow/core/common_runtime/local_device.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/tensorflow/core/common_runtime/local_device.h b/tensorflow/core/common_runtime/local_device.h
new file mode 100644
index 0000000000..fc4cfc2dfc
--- /dev/null
+++ b/tensorflow/core/common_runtime/local_device.h
@@ -0,0 +1,27 @@
+#ifndef TENSORFLOW_COMMON_RUNTIME_LOCAL_DEVICE_H_
+#define TENSORFLOW_COMMON_RUNTIME_LOCAL_DEVICE_H_
+
+#include "tensorflow/core/common_runtime/device.h"
+#include "tensorflow/core/framework/device_attributes.pb.h"
+
+namespace tensorflow {
+
+class SessionOptions;
+
+// This class is shared by ThreadPoolDevice and GPUDevice and
+// initializes a shared Eigen compute device used by both. This
+// should eventually be removed once we refactor ThreadPoolDevice and
+// GPUDevice into more 'process-wide' abstractions.
+class LocalDevice : public Device {
+ public:
+ LocalDevice(const SessionOptions& options, const DeviceAttributes& attributes,
+ Allocator* device_allocator);
+ ~LocalDevice() override {}
+
+ private:
+ TF_DISALLOW_COPY_AND_ASSIGN(LocalDevice);
+};
+
+} // namespace tensorflow
+
+#endif // TENSORFLOW_COMMON_RUNTIME_LOCAL_DEVICE_H_