Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/GeWu-Lab/AnyTouch2
/ random_seed
Function
random_seed
scripts/quick_start.py:72–75 ·
view source on GitHub ↗
(seed=0)
Source
from the content-addressed store, hash-verified
70
return
model
71
72
def
random_seed(seed=0):
73
torch.manual_seed(seed)
74
np.random.seed(seed)
75
random.seed(seed)
76
77
def
main(args):
78
device = torch.device(args.device)
Callers
1
main
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected