MCPcopy Create free account
hub / github.com/huggingface/transformers / set_seed

Method set_seed

tests/test_modeling_xlnet.py:156–158  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

154 )
155
156 def set_seed(self):
157 random.seed(self.seed)
158 torch.manual_seed(self.seed)
159
160 def create_and_check_xlnet_base_model(
161 self,

Callers 7

set_seedFunction · 0.45
test_xlnet_base_modelMethod · 0.45
test_xlnet_lm_headMethod · 0.45
test_xlnet_qaMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected