From f41959ccb2d9d4c722fe8fc3351401d53bcf4900 Mon Sep 17 00:00:00 2001 From: Manjunath Kudlur Date: Fri, 6 Nov 2015 16:27:58 -0800 Subject: TensorFlow: Initial commit of TensorFlow library. TensorFlow is an open source software library for numerical computation using data flow graphs. Base CL: 107276108 --- tensorflow/core/kernels/reduction_ops_max.cc | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 tensorflow/core/kernels/reduction_ops_max.cc (limited to 'tensorflow/core/kernels/reduction_ops_max.cc') diff --git a/tensorflow/core/kernels/reduction_ops_max.cc b/tensorflow/core/kernels/reduction_ops_max.cc new file mode 100644 index 0000000000..1749360b6e --- /dev/null +++ b/tensorflow/core/kernels/reduction_ops_max.cc @@ -0,0 +1,26 @@ +#include "tensorflow/core/kernels/reduction_ops_common.h" + +namespace tensorflow { + +#define REGISTER_CPU_KERNELS(type) \ + REGISTER_KERNEL_BUILDER( \ + Name("Max").Device(DEVICE_CPU).TypeConstraint("T"), \ + ReductionOp>); +TF_CALL_REAL_NUMBER_TYPES(REGISTER_CPU_KERNELS); +#undef REGISTER_CPU_KERNELS + +#if GOOGLE_CUDA + +#define REGISTER_GPU_KERNELS(type) \ + REGISTER_KERNEL_BUILDER( \ + Name("Max") \ + .Device(DEVICE_GPU) \ + .TypeConstraint("T") \ + .HostMemory("reduction_indices"), \ + ReductionOp>); +REGISTER_GPU_KERNELS(float); +#undef REGISTER_GPU_KERNELS + +#endif + +} // namespace tensorflow -- cgit v1.2.3