aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/core/kernels/reverse_sequence_op_gpu.cu.cc
blob: 7b5d5330264b12bf6d20f707038ded2dbb2d0fe8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#if GOOGLE_CUDA

#define EIGEN_USE_GPU

#include "tensorflow/core/framework/register_types.h"
#include "tensorflow/core/kernels/reverse_sequence_op.h"

namespace tensorflow {

typedef Eigen::GpuDevice GPUDevice;

#define DEFINE_GPU_SPEC(T, dims)                       \
  template class generator::ReverseGenerator<T, dims>; \
  template struct functor::ReverseSequence<GPUDevice, T, dims>;

#define DEFINE_GPU_SPECS(T) \
  DEFINE_GPU_SPEC(T, 2);    \
  DEFINE_GPU_SPEC(T, 3);    \
  DEFINE_GPU_SPEC(T, 4);    \
  DEFINE_GPU_SPEC(T, 5);

TF_CALL_GPU_NUMBER_TYPES(DEFINE_GPU_SPECS);

}  // end namespace tensorflow

#endif  // GOOGLE_CUDA