diff options
Diffstat (limited to 'tensorflow/core/kernels/l2loss_op_gpu.cu.cc')
-rw-r--r-- | tensorflow/core/kernels/l2loss_op_gpu.cu.cc | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tensorflow/core/kernels/l2loss_op_gpu.cu.cc b/tensorflow/core/kernels/l2loss_op_gpu.cu.cc new file mode 100644 index 0000000000..858fcfe8d3 --- /dev/null +++ b/tensorflow/core/kernels/l2loss_op_gpu.cu.cc @@ -0,0 +1,16 @@ +#if GOOGLE_CUDA + +#define EIGEN_USE_GPU + +#include "tensorflow/core/kernels/l2loss_op.h" + +#include "tensorflow/core/framework/register_types.h" + +namespace tensorflow { + +typedef Eigen::GpuDevice GPUDevice; +template struct functor::L2Loss<GPUDevice, float>; + +} // namespace tensorflow + +#endif // GOOGLE_CUDA |