diff options
Diffstat (limited to 'tensorflow/core/kernels/cast_op_impl_int8.cc')
-rw-r--r-- | tensorflow/core/kernels/cast_op_impl_int8.cc | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/tensorflow/core/kernels/cast_op_impl_int8.cc b/tensorflow/core/kernels/cast_op_impl_int8.cc index 21002a4321..eac185d5a0 100644 --- a/tensorflow/core/kernels/cast_op_impl_int8.cc +++ b/tensorflow/core/kernels/cast_op_impl_int8.cc @@ -20,15 +20,13 @@ namespace tensorflow { typedef Eigen::ThreadPoolDevice CPUDevice; typedef Eigen::GpuDevice GPUDevice; -std::function<void(OpKernelContext*, const Tensor&, Tensor*)> -GetCpuCastFromInt8(DataType dst_dtype) { +CastFunctorType GetCpuCastFromInt8(DataType dst_dtype) { CURRY_TYPES3(CAST_CASE, CPUDevice, int8); return nullptr; } #if GOOGLE_CUDA -std::function<void(OpKernelContext*, const Tensor&, Tensor*)> -GetGpuCastFromInt8(DataType dst_dtype) { +CastFunctorType GetGpuCastFromInt8(DataType dst_dtype) { CURRY_TYPES3_NO_BF16(CAST_CASE, GPUDevice, int8); return nullptr; } @@ -36,8 +34,7 @@ GetGpuCastFromInt8(DataType dst_dtype) { #ifdef TENSORFLOW_USE_SYCL typedef Eigen::SyclDevice SYCLDevice; -std::function<void(OpKernelContext*, const Tensor&, Tensor*)> -GetSyclCastFromInt8(DataType dst_dtype) { +CastFunctorType GetSyclCastFromInt8(DataType dst_dtype) { CURRY_TYPES3_NO_HALF(CAST_CASE, SYCLDevice, int8); return nullptr; } |