diff options
Diffstat (limited to 'tensorflow/core/kernels/cwise_op_imag.cc')
-rw-r--r-- | tensorflow/core/kernels/cwise_op_imag.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tensorflow/core/kernels/cwise_op_imag.cc b/tensorflow/core/kernels/cwise_op_imag.cc new file mode 100644 index 0000000000..c2432326fc --- /dev/null +++ b/tensorflow/core/kernels/cwise_op_imag.cc @@ -0,0 +1,10 @@ +#include "tensorflow/core/kernels/cwise_ops_common.h" + +namespace tensorflow { +REGISTER_KERNEL_BUILDER(Name("Imag").Device(DEVICE_CPU), + UnaryOp<CPUDevice, functor::get_imag<complex64>>); +#if GOOGLE_CUDA +REGISTER_KERNEL_BUILDER(Name("Imag").Device(DEVICE_GPU), + UnaryOp<GPUDevice, functor::get_imag<complex64>>); +#endif +} // namespace tensorflow |