Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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_seed
Function · 0.45
test_xlnet_base_model
Method · 0.45
test_xlnet_base_model_with_att_output
Method · 0.45
test_xlnet_lm_head
Method · 0.45
test_xlnet_sequence_classif
Method · 0.45
test_xlnet_token_classif
Method · 0.45
test_xlnet_qa
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected