MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / Fill

Method Fill

tensorflow/core/kernels/stateless_random_ops.cc:105–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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
116template <typename Device, typename IntType>

Callers

nothing calls this directly

Calls 3

DistributionClass · 0.85
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected