| 169 | } |
| 170 | |
| 171 | Maybe<Generator> MakeCPUGenerator() { |
| 172 | static auto device_mgr = |
| 173 | Singleton<ep::DeviceManagerRegistry>::Get()->GetDeviceManager(DeviceType::kCPU); |
| 174 | return std::make_shared<Generator>(device_mgr->CreateRandomGenerator(default_rng_seed_val, 0)); |
| 175 | } |
| 176 | |
| 177 | Maybe<Generator> MakeCUDAGenerator(int device_index) { |
| 178 | static auto device_mgr = |
nothing calls this directly
no test coverage detected