MCPcopy Create free account
hub / github.com/OpenGVLab/HumanBench / _set_randomseed

Method _set_randomseed

PATH/core/testers/tester.py:180–185  ·  view source on GitHub ↗
(self, seed)

Source from the content-addressed store, hash-verified

178 tmp.input_var[k] = torch.autograd.Variable(v.cuda())
179
180 def _set_randomseed(self, seed):
181 random.seed(seed)
182 np.random.seed(seed)
183 torch.manual_seed(seed)
184 torch.cuda.manual_seed(seed)
185 torch.cuda.manual_seed_all(seed)

Callers 1

forwardMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected