| 103 | using StatelessRandomOpBase::StatelessRandomOpBase; |
| 104 | |
| 105 | void Fill(OpKernelContext* context, random::PhiloxRandom random, |
| 106 | Tensor* output) override { |
| 107 | typedef typename Distribution::ResultElementType T; |
| 108 | auto flat = output->flat<T>(); |
| 109 | // Reuse the compute kernels from the stateful random ops |
| 110 | functor::FillPhiloxRandom<Device, Distribution>()( |
| 111 | context, context->eigen_device<Device>(), random, flat.data(), |
| 112 | flat.size(), Distribution()); |
| 113 | } |
| 114 | }; |
| 115 | |
| 116 | template <typename Device, typename IntType> |
nothing calls this directly
no test coverage detected