Skip to content

Commit

Permalink
Register a new Sum op for T:int64 and Tidx:int32
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 212828463
  • Loading branch information
protoget authored and tensorflower-gardener committed Sep 13, 2018
1 parent 56d4fc8 commit a9a5929
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion tensorflow/core/kernels/reduction_ops_sum.cc
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,15 @@ REGISTER_KERNEL_BUILDER(
.HostMemory("output")
.HostMemory("reduction_indices"),
ReductionOp<CPUDevice, int32, int64, Eigen::internal::SumReducer<int32>>);

REGISTER_KERNEL_BUILDER(
Name("Sum")
.Device(DEVICE_GPU)
.TypeConstraint<int64>("T")
.TypeConstraint<int32>("Tidx")
.HostMemory("input")
.HostMemory("output")
.HostMemory("reduction_indices"),
ReductionOp<CPUDevice, int64, int32, Eigen::internal::SumReducer<int64>>);
#endif

#ifdef TENSORFLOW_USE_SYCL
Expand Down

0 comments on commit a9a5929

Please sign in to comment.