MCPcopy Create free account
hub / github.com/NVlabs/edm / __init__

Method __init__

generate.py:183–185  ·  view source on GitHub ↗
(self, device, seeds)

Source from the content-addressed store, hash-verified

181
182class StackedRandomGenerator:
183 def __init__(self, device, seeds):
184 super().__init__()
185 self.generators = [torch.Generator(device).manual_seed(int(seed) % (1 << 32)) for seed in seeds]
186
187 def randn(self, size, **kwargs):
188 assert size[0] == len(self.generators)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected