Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/huggingface/diffusers
/ get_generator
Method
get_generator
tests/hooks/test_hooks.py:163–164 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
161
}
162
163
def
get_generator(self):
164
return
torch.manual_seed(0)
165
166
def
test_hook_registry(self):
167
registry = HookRegistry.check_if_exists_or_initialize(self.model)
Callers
5
test_stateful_hook
Method · 0.95
test_inference
Method · 0.95
test_invocation_order_stateful_first
Method · 0.95
test_invocation_order_stateful_middle
Method · 0.95
test_invocation_order_stateful_last
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected