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/kernels/reverse_op_gpu.cu.cc |
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/kernels/reverse_op_gpu.cu.cc')
-rw-r--r-- | tensorflow/core/kernels/reverse_op_gpu.cu.cc | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/tensorflow/core/kernels/reverse_op_gpu.cu.cc b/tensorflow/core/kernels/reverse_op_gpu.cu.cc new file mode 100644 index 0000000000..b510add3f3 --- /dev/null +++ b/tensorflow/core/kernels/reverse_op_gpu.cu.cc @@ -0,0 +1,33 @@ +#if GOOGLE_CUDA + +#define EIGEN_USE_GPU + +#include "tensorflow/core/kernels/reverse_op.h" + +#include "tensorflow/core/framework/register_types.h" + +namespace tensorflow { + +typedef Eigen::GpuDevice GPUDevice; + +#define DEFINE_REVERSE(DIM) \ + template struct functor::Reverse<GPUDevice, uint8, DIM>; \ + template struct functor::Reverse<GPUDevice, int8, DIM>; \ + template struct functor::Reverse<GPUDevice, int32, DIM>; \ + template struct functor::Reverse<GPUDevice, bool, DIM>; \ + template struct functor::Reverse<GPUDevice, float, DIM>; \ + template struct functor::Reverse<GPUDevice, double, DIM>; +DEFINE_REVERSE(0) +DEFINE_REVERSE(1) +DEFINE_REVERSE(2) +DEFINE_REVERSE(3) +DEFINE_REVERSE(4) +DEFINE_REVERSE(5) +DEFINE_REVERSE(6) +DEFINE_REVERSE(7) +DEFINE_REVERSE(8) +#undef DEFINE_REVERSE + +} // namespace tensorflow + +#endif // GOOGLE_CUDA |