diff options
Diffstat (limited to 'tensorflow/core/kernels/argmax_op_gpu.cu.cc')
-rw-r--r-- | tensorflow/core/kernels/argmax_op_gpu.cu.cc | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tensorflow/core/kernels/argmax_op_gpu.cu.cc b/tensorflow/core/kernels/argmax_op_gpu.cu.cc new file mode 100644 index 0000000000..6c91fc2c86 --- /dev/null +++ b/tensorflow/core/kernels/argmax_op_gpu.cu.cc @@ -0,0 +1,20 @@ +#if GOOGLE_CUDA + +#define EIGEN_USE_GPU + +#include "tensorflow/core/framework/register_types.h" +#include "tensorflow/core/kernels/argmax_op.h" + +namespace tensorflow { + +typedef Eigen::GpuDevice GPUDevice; + +#define DEFINE_GPU_SPEC(T) \ + template struct functor::ArgMax<GPUDevice, T>; \ + template struct functor::ArgMin<GPUDevice, T>; + +TF_CALL_GPU_NUMBER_TYPES(DEFINE_GPU_SPEC); + +} // end namespace tensorflow + +#endif // GOOGLE_CUDA |