MCPcopy Create free account
hub / github.com/Oneflow-Inc/oneflow / CreateRandomGenerator

Method CreateRandomGenerator

oneflow/core/ep/cpu/cpu_device_manager.cpp:50–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50std::shared_ptr<RandomGenerator> CpuDeviceManager::CreateRandomGenerator(uint64_t seed,
51 size_t device_index) {
52 return std::make_shared<CPUGenerator>(seed, device_index);
53}
54
55} // namespace ep
56

Callers 4

GetOrCreateMethod · 0.45
MakeCPUGeneratorFunction · 0.45
MakeCUDAGeneratorFunction · 0.45
MakeGeneratorFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected