Enable the generated version of tan kernel.
PiperOrigin-RevId: 354337603 Change-Id: I50461369c85276ccf176f9fd0ff5a7597a1aae31
This commit is contained in:
parent
9d7088c351
commit
85cc0cc7f4
@ -19,7 +19,9 @@ limitations under the License.
|
||||
|
||||
namespace tensorflow {
|
||||
namespace functor {
|
||||
#if !defined(MLIR_GENERATED_GPU_KERNELS_ENABLED)
|
||||
DEFINE_UNARY3(tan, Eigen::half, float, double);
|
||||
#endif
|
||||
} // namespace functor
|
||||
} // namespace tensorflow
|
||||
|
||||
|
@ -20,8 +20,7 @@ REGISTER6(UnaryOp, CPU, "Tan", functor::tan, Eigen::half, bfloat16, float,
|
||||
double, complex64, complex128);
|
||||
|
||||
#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, "Tan", functor::tan, Eigen::half, float, double);
|
||||
#endif
|
||||
#endif
|
||||
|
@ -41,6 +41,7 @@ filegroup(
|
||||
"gpu_op_abs.cc",
|
||||
"gpu_op_atan.cc",
|
||||
"gpu_op_atanh.cc",
|
||||
"gpu_op_tan.cc",
|
||||
"gpu_op_tanh.cc",
|
||||
],
|
||||
compatible_with = get_compatible_with_cloud(),
|
||||
@ -80,7 +81,6 @@ filegroup(
|
||||
"gpu_op_sinh.cc",
|
||||
"gpu_op_sqrt.cc",
|
||||
"gpu_op_square.cc",
|
||||
"gpu_op_tan.cc",
|
||||
],
|
||||
compatible_with = get_compatible_with_cloud(),
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user