diff options
Diffstat (limited to 'tensorflow/core/kernels/cast_op_impl_float.cc')
-rw-r--r-- | tensorflow/core/kernels/cast_op_impl_float.cc | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/tensorflow/core/kernels/cast_op_impl_float.cc b/tensorflow/core/kernels/cast_op_impl_float.cc index 1c933914fd..f1e8f0e37b 100644 --- a/tensorflow/core/kernels/cast_op_impl_float.cc +++ b/tensorflow/core/kernels/cast_op_impl_float.cc @@ -22,15 +22,13 @@ namespace tensorflow { typedef Eigen::ThreadPoolDevice CPUDevice; typedef Eigen::GpuDevice GPUDevice; -std::function<void(OpKernelContext*, const Tensor&, Tensor*)> -GetCpuCastFromFloat(DataType dst_dtype) { +CastFunctorType GetCpuCastFromFloat(DataType dst_dtype) { CURRY_TYPES3(CAST_CASE, CPUDevice, float); return nullptr; } #if GOOGLE_CUDA -std::function<void(OpKernelContext*, const Tensor&, Tensor*)> -GetGpuCastFromFloat(DataType dst_dtype) { +CastFunctorType GetGpuCastFromFloat(DataType dst_dtype) { CURRY_TYPES3(CAST_CASE, GPUDevice, float); return nullptr; } @@ -38,8 +36,7 @@ GetGpuCastFromFloat(DataType dst_dtype) { #ifdef TENSORFLOW_USE_SYCL typedef Eigen::SyclDevice SYCLDevice; -std::function<void(OpKernelContext*, const Tensor&, Tensor*)> -GetSyclCastFromFloat(DataType dst_dtype) { +CastFunctorType GetSyclCastFromFloat(DataType dst_dtype) { CURRY_TYPES3_NO_HALF(CAST_CASE, SYCLDevice, float); return nullptr; } |