MCPcopy Create free account
hub / github.com/PaddlePaddle/Paddle / GetGenerator

Method GetGenerator

paddle/phi/core/device_context.cc:485–485  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

483void DeviceContext::SetGenerator(Generator* gen) { impl_->SetGenerator(gen); }
484
485Generator* DeviceContext::GetGenerator() const { return impl_->GetGenerator(); }
486
487void DeviceContext::SetHostGenerator(Generator* gen) {
488 impl_->SetHostGenerator(gen);

Callers 15

DeviceContextMethod · 0.45
UniformKernelFunction · 0.45
RandpermKernelFunction · 0.45
GenerateRNGStateFunction · 0.45
GaussianKernelFunction · 0.45
GaussianInplaceKernelFunction · 0.45
RandintKernelFunction · 0.45
MultinomialKernelFunction · 0.45
DropoutRawKernelFunction · 0.45
TopPSamplingKernelFunction · 0.45
UniformRawKernelFunction · 0.45

Calls

no outgoing calls

Tested by 1

TestFusedAdamBaseFunction · 0.36