[OpenCL] Extends softmax op to cover double (#10323)

This commit is contained in:
Luke Iwanski 2017-06-01 03:30:28 +01:00 committed by Benoit Steiner
parent a702863e80
commit 9634414007

View File

@ -90,6 +90,8 @@ REGISTER_KERNEL_BUILDER(
REGISTER_KERNEL_BUILDER( REGISTER_KERNEL_BUILDER(
Name("Softmax").Device(DEVICE_SYCL).TypeConstraint<float>("T"), Name("Softmax").Device(DEVICE_SYCL).TypeConstraint<float>("T"),
SoftmaxOp<SYCLDevice, float>); SoftmaxOp<SYCLDevice, float>);
REGISTER_KERNEL_BUILDER(
Name("Softmax").Device(DEVICE_SYCL).TypeConstraint<double>("T"),
SoftmaxOp<SYCLDevice, double>);
#endif // TENSORFLOW_USE_SYCL #endif // TENSORFLOW_USE_SYCL
} // namespace tensorflow } // namespace tensorflow