From f41959ccb2d9d4c722fe8fc3351401d53bcf4900 Mon Sep 17 00:00:00 2001 From: Manjunath Kudlur Date: Fri, 6 Nov 2015 16:27:58 -0800 Subject: TensorFlow: Initial commit of TensorFlow library. TensorFlow is an open source software library for numerical computation using data flow graphs. Base CL: 107276108 --- tensorflow/core/common_runtime/local_device.h | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 tensorflow/core/common_runtime/local_device.h (limited to 'tensorflow/core/common_runtime/local_device.h') 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_ -- cgit v1.2.3