MCPcopy Create free account
hub / github.com/deepspeedai/DeepSpeed / random

Method random

accelerator/cpu_accelerator.py:234–235  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

232
233 # RNG APIs
234 def random(self):
235 return torch.random
236
237 def set_rng_state(self, new_state, device_index=None):
238 if device_index is None:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected