diff options
Diffstat (limited to 'tensorflow/core/kernels/pad_op_gpu.cu.cc')
-rw-r--r-- | tensorflow/core/kernels/pad_op_gpu.cu.cc | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/tensorflow/core/kernels/pad_op_gpu.cu.cc b/tensorflow/core/kernels/pad_op_gpu.cu.cc new file mode 100644 index 0000000000..35a03a2cb2 --- /dev/null +++ b/tensorflow/core/kernels/pad_op_gpu.cu.cc @@ -0,0 +1,26 @@ +#if GOOGLE_CUDA + +#define EIGEN_USE_GPU + +#include "tensorflow/core/kernels/pad_op.h" + +#include "tensorflow/core/framework/register_types.h" + +namespace tensorflow { + +typedef Eigen::GpuDevice GPUDevice; + +// Definition of the GPU implementations declared in pad_op.cc. +#define DEFINE_GPU_SPECS(T) \ + template struct functor::Pad<GPUDevice, T, 0>; \ + template struct functor::Pad<GPUDevice, T, 1>; \ + template struct functor::Pad<GPUDevice, T, 2>; \ + template struct functor::Pad<GPUDevice, T, 3>; \ + template struct functor::Pad<GPUDevice, T, 4>; \ + template struct functor::Pad<GPUDevice, T, 5>; + +TF_CALL_GPU_NUMBER_TYPES(DEFINE_GPU_SPECS); + +} // namespace tensorflow + +#endif // GOOGLE_CUDA |