blob: 84295a5a161f11767c2056b23b7c3578539c8101 (
plain)
1
2
3
4
5
6
7
8
9
10
|
#include "tensorflow/core/kernels/cwise_ops_common.h"
namespace tensorflow {
REGISTER_KERNEL_BUILDER(Name("Real").Device(DEVICE_CPU),
UnaryOp<CPUDevice, functor::get_real<complex64>>);
#if GOOGLE_CUDA
REGISTER_KERNEL_BUILDER(Name("Real").Device(DEVICE_GPU),
UnaryOp<GPUDevice, functor::get_real<complex64>>);
#endif
} // namespace tensorflow
|