Enable the generated version of ceil.

PiperOrigin-RevId: 354526985
Change-Id: I918590193279ce43efae4d8a7e088e65ff3253e9
This commit is contained in:
Stephan Herhut 2021-01-29 07:15:57 -08:00 committed by TensorFlower Gardener
parent 842c30366f
commit aea0204731
3 changed files with 4 additions and 3 deletions

View File

@ -20,8 +20,7 @@ REGISTER4(UnaryOp, CPU, "Ceil", functor::ceil, float, Eigen::half, bfloat16,
double);
#if GOOGLE_CUDA || TENSORFLOW_USE_ROCM
#if !defined(MLIR_GENERATED_GPU_KERNELS_ENABLED) || \
!defined(MLIR_GENERATED_EXPERIMENTAL_GPU_KERNELS_ENABLED)
#if !defined(MLIR_GENERATED_GPU_KERNELS_ENABLED)
REGISTER3(UnaryOp, GPU, "Ceil", functor::ceil, float, Eigen::half, double);
#endif
#endif

View File

@ -19,7 +19,9 @@ limitations under the License.
namespace tensorflow {
namespace functor {
#if !defined(MLIR_GENERATED_GPU_KERNELS_ENABLED)
DEFINE_UNARY3(ceil, Eigen::half, float, double);
#endif
} // namespace functor
} // namespace tensorflow

View File

@ -41,6 +41,7 @@ filegroup(
"gpu_op_abs.cc",
"gpu_op_atan.cc",
"gpu_op_atanh.cc",
"gpu_op_ceil.cc",
"gpu_op_cos.cc",
"gpu_op_cosh.cc",
"gpu_op_sqrt.cc",
@ -58,7 +59,6 @@ filegroup(
"gpu_op_acosh.cc",
"gpu_op_asin.cc",
"gpu_op_asinh.cc",
"gpu_op_ceil.cc",
"gpu_op_complex.cc",
"gpu_op_complex_abs.cc",
"gpu_op_conj.cc",