Skip to content

Commit

Permalink
[OpenCL] RandomGamma has no GPU friendly implementation (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke Iwanski committed Apr 10, 2017
1 parent 0a5e616 commit 76ecf13
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions tensorflow/core/kernels/random_op.cc
Original file line number Diff line number Diff line change
Expand Up @@ -720,10 +720,7 @@ void FillPhiloxRandom<SYCLDevice, Distribution>::operator()(
PhiloxRandomOp< \
SYCLDevice, \
random::TruncatedNormalDistribution< \
random::SingleSampleAdapter<random::PhiloxRandom>, TYPE> >); \
REGISTER_KERNEL_BUILDER( \
Name("RandomGamma").Device(DEVICE_SYCL).TypeConstraint<TYPE>("T"), \
RandomGammaOp<TYPE>)
random::SingleSampleAdapter<random::PhiloxRandom>, TYPE> >);

#define REGISTER_INT(IntType) \
REGISTER_KERNEL_BUILDER(Name("RandomUniformInt") \
Expand All @@ -734,7 +731,6 @@ void FillPhiloxRandom<SYCLDevice, Distribution>::operator()(
.TypeConstraint<IntType>("Tout"), \
RandomUniformIntOp<SYCLDevice, IntType>);

TF_CALL_half(REGISTER);
TF_CALL_float(REGISTER);
TF_CALL_double(REGISTER);
TF_CALL_int32(REGISTER_INT);
Expand Down

0 comments on commit 76ecf13

Please sign in to comment.