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

Method CreateRng

tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:891–903  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

889}
890
891rng::RngSupport* GpuExecutor::CreateRng() {
892 PluginRegistry *registry = PluginRegistry::Instance();
893 port::StatusOr<PluginRegistry::RngFactory> status =
894 registry->GetFactory<PluginRegistry::RngFactory>(cuda::kCudaPlatformId,
895 plugin_config_.rng());
896 if (!status.ok()) {
897 LOG(ERROR) << "Unable to retrieve RNG factory: "
898 << status.status().error_message();
899 return nullptr;
900 }
901
902 return status.ValueOrDie()(this);
903}
904
905// TODO(rspringer): Remove in b/18544742.
906bool GpuExecutor::SupportsDnn() const { return true; }

Callers

nothing calls this directly

Calls 3

rngMethod · 0.45
okMethod · 0.45
statusMethod · 0.45

Tested by

no test coverage detected