diff options
author | Manjunath Kudlur <keveman@gmail.com> | 2015-11-06 16:27:58 -0800 |
---|---|---|
committer | Manjunath Kudlur <keveman@gmail.com> | 2015-11-06 16:27:58 -0800 |
commit | f41959ccb2d9d4c722fe8fc3351401d53bcf4900 (patch) | |
tree | ef0ca22cb2a5ac4bdec9d080d8e0788a53ed496d /tensorflow/core/common_runtime/local_device.h |
TensorFlow: Initial commit of TensorFlow library.
TensorFlow is an open source software library for numerical computation
using data flow graphs.
Base CL: 107276108
Diffstat (limited to 'tensorflow/core/common_runtime/local_device.h')
-rw-r--r-- | tensorflow/core/common_runtime/local_device.h | 27 |
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_ |